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

Disassembly:
push 0xffffffffffffffff
push 0x4c522b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, dword [esp + 0x38]
cmp word [esi], 0x4e41
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
je 0x489443
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [esi + 4]
add esi, 4
mov ecx, dword [esi + 4]
add esi, 4
mov edx, dword [esi + 4]
add esi, 4
push ebx
mov ebx, dword [esi + 4]
add esi, 4
mov dword [edi + 0x38], ecx
mov dword [edi + 0x30], ebx
add esi, 4
mov dword [edi + 0x34], eax
mov dword [edi + 0x2c], edx
movzx eax, word [esi]
lea ebx, [edi + 4]
push eax
mov ecx, ebx
call fcn.00489390
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x48948a
mov dword [edi + 0x1c], 1
push ebp
add esi, 2
xor ebp, ebp
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x44], ebp
je 0x48949e
mov eax, dword [eax + 0x10]
cmp ebp, eax
jge 0x489581
mov edx, dword [ebx]
test edx, edx
je 0x489525
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x4894b7
xor ebp, ebp
jmp 0x4894ba
mov ebp, dword [ecx + 0x10]
mov eax, dword [ebx + 4]
cmp eax, ebp
jae 0x48953c
test ecx, ecx
je 0x4894ca
mov ecx, dword [ecx + 0xc]
jmp 0x4894cc
xor ecx, ecx
mov ebp, dword [esp + 0x44]
add eax, ebp
imul eax, ecx
mov cx, word [esi]
add eax, edx
mov word [eax], cx
mov ecx, dword [ebx]
add esi, 2
test ecx, ecx
je 0x489553
mov edx, dword [ebx + 8]
test edx, edx
jne 0x4894f3
mov dword [esp + 0x44], edx
jmp 0x4894fa
mov eax, dword [edx + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x44]
jae 0x48956a
test edx, edx
je 0x48950c
mov edx, dword [edx + 0xc]
jmp 0x48950e
xor edx, edx
add eax, ebp
imul eax, edx
add eax, ecx
mov cx, word [esi]
add esi, 2
mov word [eax + 2], cx
inc ebp
jmp 0x489490
push 0x4d6aec
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x4c8250
call fcn.004a0e32
push 0x4d6aec
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x4c8250
call fcn.004a0e32
xor eax, eax
mov ax, word [esi]
movzx ebx, ax
add esi, 2
mov dword [esp + 0x1c], eax
mov eax, ebx
imul eax, eax, 0x44
add eax, 4
push eax
call fcn.004a0bf6
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x3c], 0
je 0x4895cb
push fcn.00403bc0
push fcn.00403a50
push ebx
lea ebp, [eax + 4]
push 0x44
push ebp
mov dword [eax], ebx
call fcn.004a1d30
jmp 0x4895cd
xor ebp, ebp
mov ecx, dword [edi + 0x44]
test ecx, ecx
mov dword [esp + 0x3c], 0xffffffff
je 0x489608
dec dword [ecx + 4]
jne 0x4895fa
mov al, byte [ecx + 8]
test al, al
je 0x4895ec
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x4895fa
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0x44], 0
mov dword [edi + 0x3c], 0
test ebx, ebx
jle 0x489660
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x48961a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
push 0x18
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], ebp
call fcn.004a0b52
add esp, 4
test eax, eax
je 0x48963d
mov dword [eax], 0x4c82d4
mov dword [eax + 0x14], ebp
jmp 0x48963f
xor eax, eax
mov dword [edi + 0x44], eax
mov dword [eax + 4], 1
mov eax, dword [edi + 0x44]
mov byte [eax + 8], 1
mov ecx, dword [edi + 0x44]
mov dword [ecx + 0xc], 0x44
mov edx, dword [edi + 0x44]
mov dword [edx + 0x10], ebx
cmp word [esp + 0x1c], 0
mov dword [esp + 0x10], 0
ja 0x489690
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov edi, dword [esp + 0x20]
jmp 0x489690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esi, 4
mov ebp, dword [esi + 4]
add esi, 4
mov edx, dword [esi + 4]
add esi, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x3c]
add esi, 4
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], edx
je 0x48989e
mov edx, dword [edi + 0x44]
test edx, edx
jne 0x4896cd
xor ebx, ebx
jmp 0x4896d0
mov ebx, dword [edx + 0x10]
mov ecx, dword [edi + 0x40]
cmp ecx, ebx
jae 0x4898b5
test edx, edx
je 0x4896e4
mov edx, dword [edx + 0xc]
jmp 0x4896e6
xor edx, edx
movzx ebx, word [esp + 0x10]
add ecx, ebx
imul ecx, edx
mov edx, dword [esp + 0x44]
push 0
push 1
add ecx, eax
mov eax, dword [ecx]
push edx
push ebp
call dword [eax + 0x78]
test eax, eax
jne 0x4898cc
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4898ed
mov eax, dword [edi + 0x44]
test eax, eax
je 0x48971e
mov eax, dword [eax + 0x10]
mov ecx, dword [edi + 0x40]
cmp ecx, eax
jae 0x489904
mov eax, dword [edi + 0x44]
test eax, eax
je 0x489735
mov eax, dword [eax + 0xc]
jmp 0x489737
xor eax, eax
add ecx, ebx
imul ecx, eax
mov eax, dword [ecx + edx]
add ecx, edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x80]
lea eax, [ebp*4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x48991b
mov edx, dword [edi + 0x44]
test edx, edx
jne 0x489772
xor ebp, ebp
jmp 0x489775
mov ebp, dword [edx + 0x10]
mov ecx, dword [edi + 0x40]
cmp ecx, ebp
jae 0x489932
test edx, edx
je 0x489789
mov edx, dword [edx + 0xc]
jmp 0x48978b
xor edx, edx
add ecx, ebx
imul ecx, edx
mov edx, dword [ecx + eax]
add ecx, eax
call dword [edx + 0x68]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x489949
mov edx, dword [edi + 0x44]
test edx, edx
jne 0x4897b7
mov dword [esp + 0x14], edx
jmp 0x4897be
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x40]
cmp ecx, dword [esp + 0x14]
jae 0x489960
test edx, edx
je 0x4897d4
mov edx, dword [edx + 0xc]
jmp 0x4897d6
xor edx, edx
add ecx, ebx
imul ecx, edx
mov edx, dword [ecx + eax]
add ecx, eax
call dword [edx + 0x68]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x489977
mov edx, dword [edi + 0x44]
test edx, edx
jne 0x489800
xor ebp, ebp
jmp 0x489803
mov ebp, dword [edx + 0x10]
mov ecx, dword [edi + 0x40]
cmp ecx, ebp
jae 0x48998e
test edx, edx
je 0x489817
mov edx, dword [edx + 0xc]
jmp 0x489819
xor edx, edx
add ecx, ebx
imul ecx, edx
mov edx, dword [ecx + eax]
add ecx, eax
call dword [edx + 0x68]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x48987a
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
lea edi, [ecx - 1]
imul edi, eax
mov ebx, eax
neg ebx
add edi, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push ebp
push 0xc
push edi
call fcn.0049ee20
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
add esp, 0x14
add ebp, edx
add edi, ebx
dec eax
mov dword [esp + 0x14], eax
jne 0x489851
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x44]
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
cmp ax, word [esp + 0x1c]
mov dword [esp + 0x10], eax
jb 0x489687
jmp 0x489670
push 0x4d6aec
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x4c8250
call fcn.004a0e32
mov ecx, edi
call fcn.00409450
mov ecx, dword [esp + 0x34]
pop ebp
pop ebx
pop edi
mov eax, 3
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push 0x4d6aec
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x4c8250
call fcn.004a0e32
push 0x4d6aec
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], 0x4c8250
call fcn.004a0e32
push 0x4d6aec
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x4c8250
call fcn.004a0e32
push 0x4d6aec
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x4c824c
call fcn.004a0e32
push 0x4d6adc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x4c8250
call fcn.004a0e32
int3