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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, eax
cmp byte [ebx + 0x49], 4
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jne 0x45912e
mov eax, dword [ebx + 0x44]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
push edi
mov edi, dword [ebx + 0x3c]
test eax, eax
je 0x45916b
lea esp, [esp]
cmp eax, ebx
je 0x45914d
test edi, edi
je 0x459156
cmp dword [eax + 0x3c], edi
je 0x459156
mov eax, dword [eax + 8]
test eax, eax
jne 0x459140
jmp 0x45916b
test eax, eax
je 0x45916b
push ebx
call fcn.004512b0
add esp, 4
test eax, eax
jne 0x4592ff
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 0x10]
jne 0x4591cd
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x45919d
mov cl, 0x10
test byte [eax + 0x48], cl
je 0x459196
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xc]
jne 0x459196
cmp dword [eax + 0x1c], edi
jne 0x459196
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x459180
test byte [ebx + 0x48], 2
je 0x4591cd
test edi, edi
jl 0x4591cd
jg 0x4591af
cmp dword [ebp + 0xc], 0
jbe 0x4591cd
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, edi
sbb ecx, 0
cmp dword [ebx + 0x18], eax
jne 0x4591cd
cmp dword [ebx + 0x1c], ecx
jne 0x4591cd
mov dword [ebp - 8], 0xffffffff
jmp 0x4591f3
cmp dword [ebp + 0x24], 0
jne 0x4591f3
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edx
mov edx, dword [ebp + 8]
push edi
push eax
call fcn.00458680
add esp, 0x10
test eax, eax
jne 0x4592ff
movsx ecx, word [ebx + 0x4c]
mov esi, dword [ebx + ecx*4 + 0x78]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x50]
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edi
push ecx
push edx
mov dword [ebp - 0x10], eax
push eax
mov eax, esi
call fcn.0044de20
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x4592ff
movsx eax, word [ebx + 0x4c]
mov ecx, dword [ebp - 8]
movzx edi, word [ebx + eax*2 + 0x4e]
lea eax, [ebx + eax*2 + 0x4e]
test ecx, ecx
jne 0x4592aa
mov eax, dword [esi + 0x44]
call fcn.004479c0
test eax, eax
jne 0x4592ff
mov ecx, dword [esi + 0x40]
movzx eax, byte [ecx + edi*2]
movzx edx, byte [ecx + edi*2 + 1]
lea ecx, [ecx + edi*2]
movzx ecx, word [esi + 0x14]
shl eax, 8
or eax, edx
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x459281
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edx
lea edx, [ebp + 0x24]
push edx
mov ecx, esi
call fcn.0044dc60
movzx ecx, word [ebp + 0x24]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.00433350
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jne 0x4592ff
jmp 0x4592b9
jns 0x4592b9
cmp word [esi + 0x12], 0
jbe 0x4592b9
inc word [eax]
movzx edi, word [eax]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
push 0
push eax
push ecx
push edi
xor eax, eax
mov ecx, esi
call fcn.00448950
mov eax, dword [ebp - 4]
xor edx, edx
add esp, 0x14
mov word [ebx + 0x2c], dx
test eax, eax
jne 0x4592ff
cmp byte [esi + 1], dl
je 0x4592ff
and byte [ebx + 0x48], 0xfd
call fcn.00453270
movsx ecx, word [ebx + 0x4c]
mov edx, dword [ebx + ecx*4 + 0x78]
xor cl, cl
mov byte [edx + 1], cl
mov byte [ebx + 0x49], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret