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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0d35
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
cmp dword [edi + 0x78], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], eax
jne 0x49a06d
mov eax, 0x80004005
jmp 0x49a40e
cmp dword [ebp + 8], 0x64
je 0x49a0da
lea eax, [edi + 0x1238]
push eax
call dword [0x4d52fc]
lea esi, [edi + 0x11f0]
lea ebx, [ebp + 0xc]
lea eax, [esp + 0x20]
call fcn.00498510
mov ebx, dword [esp + 0x20]
test ebx, ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
je 0x49a0a5
cmp ebx, esi
je 0x49a0aa
call fcn.004aa383
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x1c]
je 0x49a0cd
test ebx, ebx
jne 0x49a0bd
call fcn.004aa383
cmp esi, dword [ebx + 4]
jne 0x49a0c7
call fcn.004aa383
mov edx, dword [esi + 0x10]
mov dword [ebp + 0xc], edx
lea eax, [edi + 0x1238]
push eax
call dword [0x4d52f4]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add eax, 0xffffffc0
cmp eax, 0x24
mov dword [esp + 0x3c], ecx
ja case.0x49a0f8.65
movzx eax, byte [eax + 0x49a444]
jmp dword [eax*4 + 0x49a434]
cmp dword [edi + 0x70], 0
je case.0x49a0f8.65
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ecx
jmp case.0x49a0f8.65
test ecx, ecx
je case.0x49a0f8.65
lea eax, [edi + 0x1234]
lea esi, [esp + 0x30]
call fcn.00498580
mov dword [esp + 0x130], 0
mov ecx, dword [edi + 0x11e8]
mov edx, dword [ecx]
lea eax, [edi + 0x11e4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
jmp 0x49a160
mov eax, dword [eax + 4]
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.0049bf60
test al, al
je 0x49a226
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
call fcn.00406840
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x130], 1
call fcn.0049bf40
add eax, 8
push eax
lea ecx, [esp + 0xd0]
call fcn.00406840
mov edx, eax
mov eax, edi
mov byte [esp + 0x130], 2
call fcn.0049cc90
lea ecx, [esp + 0xcc]
mov bl, al
call fcn.00406880
lea ecx, [esp + 0x40]
mov byte [esp + 0x130], 0
call fcn.00406880
test bl, bl
jne 0x49a1ef
call fcn.0049cbe0
mov eax, dword [esp + 0x38]
jmp 0x49a160
call fcn.0049bf40
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x20]
mov dword [eax + 4], edi
call fcn.0049bf40
mov eax, dword [eax]
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x24]
push eax
add ebx, 0x11f0
mov dword [esp + 0x20], edi
call fcn.00498100
mov dword [esp + 0x130], 0xffffffff
mov ecx, dword [esp + 0x34]
add ecx, 4
push ecx
call dword [0x4d52f4]
jmp 0x49a3f3
test ecx, ecx
je case.0x49a0f8.65
lea eax, [edi + 0x1234]
lea esi, [esp + 0x30]
call fcn.00498580
lea esi, [edi + 0x11e4]
lea ebx, [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x130], 3
call fcn.0049bed0
mov edx, dword [esi + 4]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
call fcn.0049bf60
test al, al
je 0x49a3df
mov esi, edi
call fcn.0049bf40
add eax, 0x100c
push eax
lea ecx, [esp + 0x108]
call fcn.00406840
push 1
lea edi, [esp + 0x108]
mov byte [esp + 0x134], 4
call fcn.0049c060
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a2dc
mov eax, dword [esp + 0x14]
push 0x104
jmp 0x49a3bb
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x98]
call fcn.00406840
mov ebx, eax
push 0x4f0f98
lea ecx, [esp + 0xec]
mov byte [esp + 0x134], 5
call fcn.00406840
mov edi, eax
mov ecx, esi
lea esi, [esp + 0xb0]
lea edx, [esp + 0x104]
mov byte [esp + 0x130], 6
call fcn.0049b8e0
push edi
push eax
lea edi, [esp + 0x80]
mov byte [esp + 0x138], 7
call fcn.00427c50
push ebx
push eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x140], 8
call fcn.00427c50
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x13c], 9
call fcn.00406bf0
mov ecx, edi
call fcn.00406880
lea ecx, [esp + 0x78]
call fcn.00406880
mov ecx, esi
call fcn.00406880
lea ecx, [esp + 0xe8]
call fcn.00406880
lea ecx, [esp + 0x94]
call fcn.00406880
cmp dword [esp + 0x11c], 0x10
mov eax, dword [esp + 0x108]
jae 0x49a3b3
lea eax, [esp + 0x108]
mov edx, dword [esp + 0x118]
push edx
push eax
lea esi, [esp + 0x28]
call fcn.0049bf40
add eax, 0x100c
push eax
call fcn.004ae470
add esp, 0xc
lea ecx, [esp + 0x104]
call fcn.00406880
lea esi, [esp + 0x30]
mov dword [esp + 0x130], 0xffffffff
call fcn.004985a0
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00497540
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004a91d5
mov esp, ebp
pop ebp
ret 0xc