Function at 0x4029a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4813ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x44]
xor ebx, ebx
cmp byte [eax + ecx], 8
mov dword [esp + 0xc], ebx
jne 0x402ba6
jmp 0x4029e0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov eax, 1
mov dword [esp + 0x1b4], eax
add dword [edi + 0x44], eax
mov ecx, dword [edi + 0x44]
mov edx, dword [edi]
mov eax, dword [edi + 0x3c]
add ecx, 4
mov dword [esp + 0x68], edx
mov edx, dword [ecx + eax - 4]
mov dword [esp + 0x19c], edx
mov dword [edi + 0x44], ecx
mov esi, dword [ecx + eax]
add ecx, 4
mov dword [edi + 0x44], ecx
mov dword [esp + 0x1a0], esi
mov esi, dword [eax + ecx]
add ecx, 4
cmp esi, ebx
mov dword [edi + 0x44], ecx
jl 0x402a53
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
call fcn.00409770
mov edx, dword [eax]
mov dword [esp + 0x19c], edx
push edx
lea ecx, [esp + 0x70]
push ecx
call fcn.00402d20
lea edx, [esp + 0x5c]
push edx
push edi
mov eax, esi
call fcn.00402850
mov esi, dword [esp + 0x19c]
cmp esi, 0xffffffff
jle 0x402aea
mov eax, dword [edi]
mov ecx, dword [eax + 0x1e8c]
sub ecx, dword [eax + 0x1e88]
sar ecx, 2
cmp esi, ecx
jae 0x402bff
mov edx, dword [eax + 0x1e88]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x60], eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
sub esi, ecx
sar esi, 3
cmp esi, edx
jbe 0x402c8e
mov ecx, dword [ecx + edx*8]
lea esi, [edx*8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 3
cmp eax, edx
jbe 0x402c8e
mov cx, word [ecx + esi + 4]
or word [esp + 0xc], cx
jmp 0x402b23
mov eax, dword [esp + 0x1a0]
mov ecx, dword [eax*4 + 0x4a77a0]
add eax, 0xfffffff4
mov dword [esp + 0x5c], ecx
cmp eax, 0x10
ja case.0x402b0b.14
movzx edx, byte [eax + 0x402d04]
jmp dword [edx*4 + 0x402cfc]
mov eax, 0x20
jmp 0x402b1b
xor eax, eax
or dword [esp + 0xc], eax
mov dword [esp + 0x60], ebx
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
cmp byte [eax + ecx], 9
jne 0x402c93
mov ecx, dword [esp + 0x74]
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x70]
mov dl, 1
cmp eax, ecx
je 0x402b57
mov esi, dword [eax]
cmp byte [esi + 0x18], bl
je 0x402b55
add eax, 4
cmp eax, ecx
jne 0x402b45
jmp 0x402b57
xor dl, dl
mov eax, dword [esp + 0x1bc]
movzx edx, dl
lea ecx, [esp + 0x5c]
mov dword [esp + 0x64], edx
call fcn.00409690
mov dword [esp + 0x1b4], 0xffffffff
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x402b8a
push eax
call fcn.00459fc8
add esp, 4
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x44]
cmp byte [eax + ecx], 8
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
je 0x4029e0
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
cmp byte [eax + ecx], 0xa
je 0x402cd9
push 0x1f
push str.Read_error:_bad_event_list__12_
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00415040
mov dword [esp + 0x1b4], 6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00415650
push 0x49aa24
lea ecx, [esp + 0x38]
push ecx
call fcn.00466bcb
lea ecx, [esp + 0xc]
call fcn.00414950
mov byte [esp + 0x1b4], 2
mov edi, dword [edi]
mov edx, dword [edi + 0x1e8c]
sub edx, dword [edi + 0x1e88]
add edi, 0x1e84
sar edx, 2
push edx
push esi
lea eax, [esp + 0x14]
push str.The_event_list_is_corrupt._n_n_oid:__d__num_objects:__d_
push eax
call fcn.004141b0
mov edx, dword [esp + 0x1c]
mov eax, edx
add esp, 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402c54
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00415040
mov byte [esp + 0x1b4], 3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00415650
push 0x49aa24
lea eax, [esp + 0x38]
push eax
call fcn.00466bcb
call fcn.004175c0
push 0x1f
push str.Read_error:_bad_event_list__10_
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00415040
mov byte [esp + 0x1b4], 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00415650
push 0x49aa24
lea eax, [esp + 0x38]
push eax
call fcn.00466bcb
mov ecx, dword [esp + 0x1ac]
inc eax
mov dword [edi + 0x44], eax
mov ax, word [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1ac
ret 4