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

Disassembly:
push 0xffffffffffffffff
push 0x4e0378
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x50f52c]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov eax, 0x61
xor ecx, ecx
lea edx, [esp + 0x12]
mov word [esp + 0x10], ax
push edx
mov word [esp + 0x16], cx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x28], ebp
call fcn.00490230
lea eax, [esp + 0x10]
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4903d0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.00401fe0
xor ecx, ecx
test eax, eax
jne 0x49041a
cmp dword [esp + 0x38], 8
mov word [ebp], cx
jb 0x490413
mov edx, dword [esp + 0x24]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
jmp 0x4906b1
mov eax, 0x41
lea edx, [esp + 0x16]
mov word [esp + 0x14], ax
push edx
mov word [esp + 0x1a], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00490230
mov edx, 0x3b
xor eax, eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
mov byte [esp + 0x8c], 1
call fcn.00490230
mov ecx, dword [esp + 0x34]
xor esi, esi
mov byte [esp + 0x80], 2
test ecx, ecx
jl 0x4904cf
cmp esi, dword [esp + 0x50]
jg 0x4904cf
cmp esi, ecx
jbe 0x490493
call fcn.004b32e0
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov edi, dword [esp + 0x24]
jae 0x4904a2
lea edi, [esp + 0x24]
cmp esi, dword [esp + 0x50]
jbe 0x4904b1
call fcn.004b32e0
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4904c0
lea eax, [esp + 0x40]
mov dx, word [edi + esi*2]
cmp dx, word [eax + esi*2]
jne 0x4904cf
inc esi
cmp esi, ecx
jle 0x490480
sub esi, 1
jns 0x49053c
xor eax, eax
cmp dword [esp + 0x70], 8
mov word [ebp], ax
jb 0x4904ee
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004b29fa
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], dx
jb 0x490518
mov eax, dword [esp + 0x40]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
jb 0x4906ac
mov edx, dword [esp + 0x24]
push edx
jmp 0x4906a4
cmp esi, ecx
jbe 0x490549
call fcn.004b32e0
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x490558
lea eax, [esp + 0x24]
movzx edi, word [eax + esi*2]
test esi, esi
je 0x4905f1
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.0048da30
lea ecx, [esp + 0x28]
push edi
push ecx
mov ebp, eax
call fcn.0048da30
add esp, 0x10
cmp eax, ebp
jne 0x4905e9
lea edx, [esp + 0x58]
push edi
push edx
call fcn.0048da30
mov ebp, eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0048da30
add esp, 0x10
cmp eax, ebp
jne 0x4905e9
mov ecx, dword [esp + 0x1c]
mov word [ecx], di
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call fcn.00490320
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00490320
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00490320
mov eax, 2
jmp 0x4906b1
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x50]
jne 0x49063f
cmp ecx, dword [esp + 0x6c]
jne 0x49063f
inc esi
lea ecx, [esp + 0x58]
mov word [ebp], si
mov byte [esp + 0x80], 1
call fcn.00490320
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00490320
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00490320
mov eax, 1
jmp 0x4906b1
xor edx, edx
cmp dword [esp + 0x70], 8
mov word [ebp], dx
jb 0x490659
mov eax, dword [esp + 0x5c]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
jb 0x490685
mov edx, dword [esp + 0x40]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x4906ac
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004b29fa
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004b3057
add esp, 0x74
ret