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

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x499a37
mov eax, dword [eax + 8]
test eax, eax
jne 0x499a51
mov eax, dword [esp + 0xd4]
push eax
call fcn.0043d6a0
add esp, 4
pop ebx
add esp, 0xcc
ret 8
mov ecx, dword [eax + 0x3e0]
push esi
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.0043e900
add esp, 8
mov esi, ebx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x499a74
mov eax, dword [eax + 8]
jmp 0x499a76
xor eax, eax
cmp esi, dword [eax + 0xe0]
je 0x499abf
mov ecx, esi
call fcn.00449e30
test eax, eax
je 0x499aa4
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x20]
lea eax, [esp + 0x58]
push eax
add edx, 0x34c
push edx
push eax
call fcn.0043e4f0
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0x30]
push edx
mov eax, ecx
push eax
call fcn.0043e4f0
mov esi, dword [esi + 8]
add esp, 0xc
test esi, esi
jne 0x499a68
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x499acb
mov eax, dword [eax + 8]
jmp 0x499acd
xor eax, eax
push ebp
lea ecx, [esp + 0x5c]
push ecx
push eax
mov edx, ecx
push edx
call fcn.0043e4f0
mov ebp, dword [esp + 0xe8]
push ebp
call fcn.0043d6a0
mov eax, dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x499fbf
mov ecx, dword [eax + 0x78]
cmp ecx, 6
je 0x499b04
cmp ecx, 0x61
jne 0x499b47
mov al, byte [esp + 0xe0]
test al, al
je 0x499b2d
push 1
push 1
push ebp
lea eax, [ebx + 0x30]
push eax
push ebx
call fcn.00493870
add esp, 0x14
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret 8
push 0
push 1
push ebp
push ebx
call fcn.004939d0
add esp, 0x10
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret 8
test eax, eax
je 0x499fbf
cmp dword [eax + 0x78], 9
jne 0x499b7b
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0x18]
push ebp
call fcn.00432f40
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0043e2d0
add esp, 0xc
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret 8
test eax, eax
je 0x499fbf
cmp dword [eax + 0x78], 2
jne 0x499fbf
mov ecx, dword [eax + 0x68]
mov dl, byte [ecx + 0x5ee]
test dl, dl
push edi
je 0x499d53
test dword [ebx + 0x54], 0x2000000
je 0x499baf
mov edx, dword [ebx + 0x78]
mov ebx, dword [edx]
jmp 0x499bb2
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x499fbe
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x499fbe
mov ecx, dword [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0xe4]
test al, al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x499bf8
mov eax, 1
mov dword [esp + 0x14], 4
jmp 0x499c02
xor eax, eax
mov dword [esp + 0x14], 1
cmp eax, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x18], esi
jge 0x499fbe
mov eax, dword [esp + esi*4 + 0x1c]
test eax, eax
je 0x499d35
mov edi, dword [eax + 0x38]
test edi, edi
je 0x499d35
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [edi + 0x30]
push edx
call fcn.0043e4f0
mov al, byte [esp + 0xf0]
add esp, 0xc
test al, al
jne 0x499c92
mov eax, dword [edi + 0x18]
test eax, eax
je 0x499c92
mov eax, dword [eax + 0x78]
cmp eax, 6
je 0x499c61
cmp eax, 0x61
jne 0x499c92
push 1
push 0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x9c]
push ecx
push edi
call fcn.00493870
push ebp
lea edx, [esp + 0xc4]
push ebp
push edx
call fcn.0043f7b0
add esp, 0x20
jmp 0x499d35
lea esi, [edi + 0x7c]
mov eax, esi
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push esi
lea eax, [esp + 0x94]
mov dword [esp + 0x88], ecx
push eax
mov ecx, edi
mov dword [esp + 0x90], edx
call fcn.004965e0
mov al, byte [esp + 0xe4]
test al, al
je 0x499cff
push 0
mov ecx, edi
call fcn.00491e50
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xe0]
push eax
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], edx
push eax
jmp 0x499d09
mov eax, dword [esp + 0xe0]
push eax
push eax
push esi
call fcn.0043f7b0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0xec]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov esi, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x499c12
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret 8
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x499fbe
mov eax, dword [eax + 0x68]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.004015f0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x70]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.0049c9d0
mov eax, dword [ebx + 0x18]
cmp byte [eax + 0x7e], 0x22
mov eax, dword [esp + 0x40]
jne 0x499d98
add eax, 2
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x3c]
mov cl, byte [eax + edi]
inc eax
test cl, cl
mov byte [esp + 0x13], cl
je 0x499fbe
xor ebp, ebp
mov edi, edi
lea esi, [eax + edi]
add eax, 2
mov dword [esp + 0x40], eax
xor ecx, ecx
mov ch, byte [esi + 1]
xor edx, edx
mov cl, byte [esi]
mov esi, ecx
lea ecx, [eax + edi]
add eax, 2
mov dword [esp + 0x40], eax
mov dh, byte [ecx + 1]
lea eax, [esp + 0x90]
push eax
mov dl, byte [ecx]
lea ecx, [esp + 0x40]
add dx, word [ebx + 0x1c]
mov edi, edx
call fcn.0049e5f0
mov ecx, dword [ebx + 0x18]
cmp byte [ecx + 0x7e], 0x22
jne 0x499e07
push 1
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x44]
call fcn.0049e740
test byte [esp + 0x13], 0x10
je 0x499e4b
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x499e23
call fcn.004a0d20
cmp eax, 8
jl 0x499e4b
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
call fcn.00448e30
lea ecx, [esp + 0x1c]
call fcn.00448dc0
test byte [esp + 0x13], 0x20
je 0x499e70
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x499e67
call fcn.004a0d20
cmp eax, 8
jl 0x499e70
inc dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
push esi
call fcn.0049d9e0
mov esi, eax
test byte [esp + 0x13], 8
mov dword [esp + 0x14], esi
je 0x499fa6
cmp esi, ebp
je 0x499fa6
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
mov edx, dword [ecx + 0x128]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00477180
mov ebp, eax
mov eax, dword [ebx + 0x2c]
add esp, 4
push eax
mov ecx, ebp
call fcn.0044d900
movzx ecx, di
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x18], esi
lea edi, [ebp + 0x30]
mov ecx, 7
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xac]
call fcn.0046baf0
lea edx, [esp + 0xac]
push edx
mov ecx, ebp
call fcn.00495850
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x78], 9
jne 0x499f0d
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp + 0x20]
call fcn.00479150
mov ecx, ebp
call fcn.004962a0
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.0043e4f0
add esp, 0xc
lea esi, [ebp + 0x7c]
push esi
lea ecx, [esp + 0xc4]
push ecx
mov ecx, ebp
call fcn.004965e0
mov al, byte [esp + 0xe4]
test al, al
je 0x499f89
mov eax, dword [edi + 0x78]
cmp eax, 9
je 0x499f9b
cmp eax, 4
je 0x499f9b
push 0
mov ecx, ebp
call fcn.00491e50
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe0]
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
jmp 0x499f93
mov eax, dword [esp + 0xe0]
push eax
push eax
push esi
call fcn.0043f7b0
add esp, 0xc
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
xor ebp, ebp
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov cl, byte [eax + edi]
inc eax
test cl, cl
mov byte [esp + 0x13], cl
jne 0x499db0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret 8