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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x50
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x14
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x1c]
call fcn.00407930
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x58]
add eax, 0x18
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cc10
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x1c]
mov word [ebp - 0x14], dx
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x780]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
je 0x494570
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x779], 1
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 8]
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xa]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xc]
mov word [ebp - 0xc], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xe]
mov word [ebp - 0xa], dx
mov ecx, dword [ebp - 0x58]
call fcn.00494060
add eax, dword [ebp - 0x10]
add eax, 1
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x8e8]
cmp byte [edx + 0x3c], 0
jne 0x494257
push 1
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x8e8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xf0]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8d0]
add edx, 0xffffffff
add word [ebp - 0x28], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8d4]
add word [ebp - 0x26], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8dc]
sub word [ebp - 0x22], dx
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x8e8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xa4]
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8d0]
add edx, 0xffffffff
add word [ebp - 0x10], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8c8]
sub word [ebp - 0xe], dx
mov dword [ebp - 0x50], 0xffffffff
jmp 0x49452a
cmp dword [ebp - 0x50], 0xffffffff
jle 0x4942c1
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x50], eax
jge 0x4942c1
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
call fcn.004965e0
add eax, dword [ebp - 0xe]
mov word [ebp - 0xa], ax
mov edx, dword [ebp - 0x50]
lea edx, [edx*4]
add edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040cc10
mov byte [ebp - 0x51], 0
jmp 0x494344
cmp dword [ebp - 0x50], 0
jge 0x4942db
mov edx, dword [ebp - 0xe]
mov word [ebp - 0xa], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xa]
mov word [ebp - 0xe], dx
jmp 0x4942f4
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0xe]
mov word [ebp - 0xa], dx
mov eax, dword [ebp - 0x58]
movzx edx, word [eax + 0x8dc]
sub word [ebp - 0xa], dx
mov dword [ebp - 0x2c], 0
push 0x52ad40
call fcn.0040dc70
pop ecx
push eax
push 0x52ad40
lea ecx, [ebp - 0x2c]
call fcn.0040c560
cmp dword [ebp - 0x2c], 0
je 0x494326
mov ebx, dword [ebp - 0x2c]
mov edx, dword [0x5022fc]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040cc10
cmp dword [ebp - 0x2c], 0
je 0x494340
mov ecx, dword [ebp - 0x2c]
call fcn.0040c380
mov byte [ebp - 0x51], 1
cmp dword [ebp - 0x4c], 0
je 0x4943f9
mov eax, dword [ebp - 0x4c]
mov cl, byte [ebp - 0x51]
mov byte [eax + 0x14], cl
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
add ecx, 0x78
call fcn.0040caf0
push eax
lea eax, [ebp - 0x20]
mov ecx, eax
call fcn.0040caf0
push eax
call fcn.0040dd10
pop ecx
pop ecx
cmp eax, 0
jne 0x494381
mov al, 0
jmp 0x494383
mov al, 1
cmp al, 0
je 0x4943be
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x49439d
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.0040c350
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov ecx, eax
call fcn.00402d60
cmp dword [ebp - 0x30], 0
je 0x4943be
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.0040c380
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xa4]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x4c], ecx
jmp 0x494520
push 0x18
call fcn.00476140
pop ecx
cmp eax, 0
je 0x49440f
mov ecx, eax
call fcn.004931c0
mov eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov cl, byte [ebp - 0x51]
mov byte [eax + 0x14], cl
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x10], ecx
mov byte [ebp - 0x52], 0
mov bl, 0
push 0x88
call fcn.00476140
pop ecx
mov esi, eax
cmp esi, 0
je 0x4944b1
lea ebx, [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
mov dword [ebx], edx
cmp dword [ebx], 0
je 0x494452
mov eax, dword [ebx]
mov ecx, eax
call fcn.0040c350
movzx edx, byte [ebp - 0x18]
mov byte [ebx + 4], dl
movzx edx, byte [ebp - 0x17]
mov byte [ebx + 5], dl
movzx edx, byte [ebp - 0x16]
mov byte [ebx + 6], dl
mov edx, dword [ebp - 0x14]
mov word [ebx + 8], dx
mov bl, 1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x494486
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.0040c350
mov byte [ebp - 0x52], 1
push 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x58]
push dword [eax + 0x38]
push dword [ebp - 0x58]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
mov eax, esi
mov ecx, eax
call fcn.00401d40
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], esi
cmp bl, 0
je 0x4944cc
cmp dword [ebp - 0x40], 0
je 0x4944cc
mov eax, dword [ebp - 0x40]
mov ecx, eax
call fcn.0040c380
cmp byte [ebp - 0x52], 0
je 0x4944e2
cmp dword [ebp - 0x34], 0
je 0x4944e2
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.0040c380
mov eax, dword [ebp - 0x58]
push dword [eax + 0x8e8]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x164]
cmp dword [ebp - 0x48], 0
je 0x49450e
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0xc], ecx
jmp 0x49451a
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x780], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0xa]
mov word [ebp - 0xe], dx
inc dword [ebp - 0x50]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x50], eax
jle 0x494282
jmp 0x49455f
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xe0]
push dword [ebp - 0x44]
call fcn.00476180
pop ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
jne 0x494538
jmp 0x494591
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x779], 0
push 0
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x8e8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xf0]
mov edx, dword [ebp - 0x58]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x18c]
cmp dword [ebp - 0x20], 0
je 0x4945b0
mov eax, dword [ebp - 0x20]
mov ecx, eax
call fcn.0040c380
cmp dword [ebp - 0x1c], 0
je 0x4945c0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0040c380
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 8