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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
push edi
mov dword [esp + 0x18], eax
test esi, esi
jne 0x491018
mov eax, 0xc0000030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
and dword [esi], 0xfffffffc
and dword [esi + 8], 0xfffffffc
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x28], edi
mov edi, ecx
or edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jne 0x491057
mov edi, 0xc000000d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ebx, [esp + 0x10]
mov edi, ebp
mov dword [esp + 0x10], 0xffffffff
call fcn.00471790
test eax, eax
jl 0x49117d
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x49108a
mov edi, 0xc0000022
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 3
jne 0x4910a6
mov ecx, dword [ebp + 0x28]
push 2
add ecx, 0x670
lea edi, [eax + 0x11]
call fcn.00472270
test al, al
je 0x49107b
mov ecx, dword [esp + 0x3c]
test byte [ecx + 0x28], 0xb0
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebx + 0x88]
jne 0x491048
mov eax, dword [esp + 0x38]
mov ecx, 5
call fcn.00470570
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
push 0
xor ecx, ecx
mov eax, edi
call fcn.004705c0
test eax, eax
jge 0x4910e9
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp dword [ebp + 0x1e4], 0
mov ecx, dword [esp + 0x10]
jne 0x49110f
push ebp
call fcn.00471e10
test eax, eax
jge 0x49116f
mov edi, 0xc000000b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x154]
mov dword [ebp + 0x1e4], ecx
mov dword [eax + 0x98], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x154]
mov dword [edx + 0xd8], eax
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x49116f
mov edx, dword [ebp + 0x154]
mov edx, dword [edx + 0xd8]
mov dword [eax + 0x610], edx
mov eax, dword [esp + 0x24]
mov edx, eax
or edx, dword [esp + 0x28]
jne 0x491163
lea eax, [ecx + ecx*2]
mov eax, dword [eax*8 + 0x90a420]
mov ecx, dword [ebp + 0x158]
mov dword [ecx + 0x614], eax
mov ebx, dword [ebp + 0x154]
inc dword [ebx + 0x14]
jmp 0x49127b
cmp dword [esp + 0x10], 0xffffffff
jne 0x4910df
mov edi, dword [esp + 0x24]
mov edx, edi
or edx, dword [esp + 0x28]
je 0x4911f8
mov ebx, dword [ebp + 0x1cc]
test ebx, ebx
je 0x491100
mov eax, dword [ebp + 0x64]
cmp byte [eax + 0x3c], 6
jne 0x4911bd
mov ecx, dword [eax + 0x614]
xor edx, edx
cmp edi, ecx
jne 0x4911bd
cmp dword [esp + 0x28], edx
je 0x4911d3
sub ebx, 1
mov eax, dword [eax]
jne 0x4911a5
mov edi, 0xc000000b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + 0xd8]
xor edx, edx
cmp dword [esp + 0x1c], ecx
jne 0x491100
cmp dword [esi + 4], edx
jne 0x491100
mov edi, eax
jmp 0x491230
mov eax, dword [ebp + 0x5c]
lea ebx, [ebp + 0x5c]
cmp eax, ebx
je 0x491100
mov edx, dword [eax + 0x78]
lea ecx, [eax - 0x60]
xor edi, edi
cmp edx, dword [esp + 0x1c]
jne 0x491219
cmp edi, dword [esi + 4]
je 0x49122e
mov eax, dword [eax]
cmp eax, ebx
jne 0x491206
mov edi, 0xc000000b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, ecx
mov eax, 5
call fcn.00470550
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
test dword [ecx + 0x28], eax
jne 0x491048
mov eax, dword [esp + 0x38]
mov ecx, 5
call fcn.00470570
mov ebx, dword [ebp + 0x28]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
push 0
xor ecx, ecx
mov eax, edi
call fcn.004705c0
test eax, eax
jl 0x4910df
inc dword [edi + 0x14]
mov ebx, edi
test byte [esp + 0x14], 0x28
je 0x4912b8
mov eax, dword [esp + 0x18]
cmp ebx, eax
je 0x4912b8
cmp ebx, dword [eax + 0x900]
je 0x4912b8
mov eax, dword [ebx + 0x1a68]
test eax, eax
je 0x4912b8
test byte [eax + 0x50], 2
jne 0x4912b8
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x278]
push ecx
push ebp
mov edi, 0x14
call fcn.00455360
mov edx, dword [esi]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
mov esi, ebx
call fcn.0045b730
mov edi, eax
test edi, edi
jge 0x4912e5
mov ecx, ebx
call fcn.00471c20
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret