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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x631040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
and dword [ebp - 0x3c], 0
push edi
and dl, 2
mov dword [ebp - 8], 3
mov byte [ebp - 0x25], dl
movsx ebx, byte [esi + 0x44]
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ebx
mov edi, dword [esi + ebx*4 + 0x78]
mov eax, dword [eax + 4]
movzx ecx, word [esi + ebx*2 + 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x30], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
mov dword [ebp - 0x34], ecx
test dl, dl
je 0x45dca1
cmp byte [edi + 8], 0
je 0x45dc92
push ecx
push edi
call fcn.00457938
pop ecx
pop ecx
movzx ecx, ax
xor edx, edx
movzx eax, word [edi + 0x14]
add eax, 2
add ecx, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x24]
add eax, eax
div dword [ebp - 8]
cmp ecx, eax
jg 0x45dc92
mov dword [ebp - 0x3c], 1
jmp 0x45dca1
mov ecx, esi
call fcn.00457346
test eax, eax
jne 0x45de80
cmp byte [edi + 8], 0
jne 0x45dcbf
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push esi
call fcn.0045af20
pop ecx
pop ecx
test eax, eax
jne 0x45de80
test byte [esi + 0x40], 0x20
je 0x45dcda
mov edx, dword [esi + 0x34]
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.004573f0
pop ecx
test eax, eax
jne 0x45de80
cmp dword [esi + 0x48], 0
jne 0x45dcf3
push dword [esi + 0x14]
mov ecx, dword [ebp - 0x24]
xor edx, edx
push dword [esi + 0x10]
call fcn.004572ca
add esp, 8
mov ecx, dword [edi + 0x48]
call fcn.00454790
test eax, eax
jne 0x45de80
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0045b7ce
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
pop ecx
push eax
movzx eax, word [ebp - 0xe]
mov ecx, edi
push eax
call fcn.0045bb7d
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
test eax, eax
jne 0x45de80
cmp byte [edi + 8], al
jne 0x45ddf7
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
mov eax, dword [ebp - 0x38]
movzx ecx, word [ebx + 0x16]
mov eax, dword [esi + eax*4 + 0x7c]
mov edx, dword [ebx + 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x40], ecx
cmp ecx, eax
jae 0x45dd8a
mov ecx, 0x106fd
call fcn.0049e41a
jmp 0x45de80
push ecx
push ebx
call dword [ebx + 0x4c]
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x2c], eax
call fcn.00454790
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x45ddd4
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, edi
push dword [ebp - 0x2c]
add eax, 4
push eax
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffc
push eax
call fcn.0045bc86
add esp, 0x14
movzx edx, word [ebx + 0x16]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
dec edx
mov ecx, ebx
call fcn.0045bb7d
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
test eax, eax
jne 0x45de80
mov ebx, dword [ebp - 0x38]
mov ecx, esi
call fcn.0045d77c
mov ecx, eax
test ecx, ecx
jne 0x45de7e
mov dl, byte [esi + 0x44]
movsx eax, dl
cmp eax, ebx
jle 0x45de39
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], dl
test ecx, ecx
je 0x45de26
mov ecx, dword [ecx + 0x48]
call fcn.00454281
mov dl, byte [esi + 0x44]
movsx eax, dl
cmp eax, ebx
jg 0x45de0e
mov ecx, esi
call fcn.0045d77c
mov ecx, eax
test ecx, ecx
jne 0x45de7e
cmp dword [ebp - 0x3c], ecx
je 0x45de69
mov byte [esi + 0x42], 2
movzx eax, word [edi + 0x16]
cmp dword [ebp - 0x30], eax
jb 0x45de60
or dword [esi + 0x3c], 0xffffffff
mov ax, word [edi + 0x16]
dec ax
mov word [esi + ebx*2 + 0x50], ax
jmp 0x45de7e
mov dword [esi + 0x3c], 1
jmp 0x45de7e
mov ecx, esi
call fcn.0045a6ea
cmp byte [ebp - 0x25], 0
mov ecx, eax
je 0x45de7e
push 3
pop eax
mov byte [esi + 0x42], al
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c233c
leave
ret