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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x517748]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
and dl, 2
mov byte [esp + 0xf], dl
mov eax, dword [edi]
lea ecx, [edi + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x24], eax
mov ebx, dword [edi + eax*4 + 0x78]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x2c], ecx
movzx ecx, word [ecx]
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x1c], ecx
test dl, dl
je 0x45c60c
cmp byte [ebx + 4], 0
je 0x45c5fd
push ecx
push ebx
call fcn.004548e0
movzx esi, word [ebx + 0x10]
add esp, 8
movzx ecx, ax
add esi, 2
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x45c5fd
mov dword [esp + 0x20], 1
jmp 0x45c60c
mov ecx, edi
call fcn.004540f0
test eax, eax
jne 0x45c8c3
cmp byte [ebx + 4], 0
jne 0x45c661
and byte [edi + 0x40], 0xf1
xor eax, eax
cmp byte [edi + 0x42], 1
mov dword [esp + 0x30], 0
mov word [edi + 0x22], ax
jne 0x45c64e
movsx eax, byte [edi + 0x44]
movzx edx, word [edi + eax*2 + 0x50]
lea ecx, [edi + eax*2]
test dx, dx
je 0x45c64e
mov eax, dword [edi + eax*4 + 0x78]
cmp byte [eax + 4], 0
je 0x45c64e
lea eax, [edx - 1]
mov word [ecx + 0x50], ax
jmp 0x45c661
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.00458d30
test eax, eax
jne 0x45c8c3
mov al, byte [edi + 0x40]
test al, 0x20
je 0x45c697
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x34]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x45c692
cmp ecx, edi
je 0x45c68b
test edx, edx
je 0x45c762
cmp dword [ecx + 0x34], edx
je 0x45c762
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x45c676
and al, 0xdf
mov byte [edi + 0x40], al
cmp dword [edi + 0x48], 0
jne 0x45c6b1
push dword [edi + 0x14]
mov ecx, dword [esp + 0x14]
xor edx, edx
push dword [edi + 0x10]
call fcn.00453f30
add esp, 8
mov ecx, dword [ebx + 0x48]
call fcn.0044ffa0
test eax, eax
jne 0x45c8c3
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.004597e0
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, ebx
lea eax, [esp + 0x30]
push eax
movzx eax, word [esp + 0x14]
push eax
call fcn.00459d40
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
jne 0x45c8c3
cmp byte [ebx + 4], al
jne 0x45c808
movsx eax, byte [edi + 0x44]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [esp + 0x24]
movzx ecx, word [esi + 0x12]
mov eax, dword [edi + eax*4 + 0x7c]
mov edx, dword [esi + 0x38]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x14]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jae 0x45c78d
mov ecx, 0x10674
call fcn.004bda20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x45c692
push edi
call fcn.004541b0
add esp, 4
test eax, eax
je 0x45c697
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
call fcn.0044ffa0
mov dword [esp + 0x30], eax
test eax, eax
jne 0x45c7e4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x1c]
add eax, 4
push eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffc
push eax
call fcn.00459e70
add esp, 0x14
movzx edx, word [esi + 0x12]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
dec edx
mov ecx, esi
call fcn.00459d40
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
jne 0x45c8c3
mov ecx, edi
call fcn.0045c100
mov edx, eax
test edx, edx
jne 0x45c8c1
movsx ecx, byte [edi + 0x44]
mov esi, dword [esp + 0x24]
cmp ecx, esi
jle 0x45c855
mov dl, byte [edi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x45c840
mov ecx, dword [ecx + 0x48]
call fcn.0044f830
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x45c825
mov ecx, edi
call fcn.0045c100
mov edx, eax
test edx, edx
jne 0x45c8c1
cmp dword [esp + 0x20], 0
je 0x45c8ad
mov byte [edi + 0x42], 2
movzx eax, word [ebx + 0x12]
cmp dword [esp + 0x18], eax
jl 0x45c892
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x3c], 0xffffffff
mov ax, word [ebx + 0x12]
dec ax
mov word [ecx], ax
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x3c], 1
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00458360
cmp byte [esp + 0xf], 0
mov edx, eax
je 0x45c8c1
mov byte [edi + 0x42], 3
mov eax, edx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret