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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x508578]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x78]
push edi
lea edx, [esp + 0x4c]
push edx
push ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], esi
call fcn.0045b3d0
mov edx, dword [esp + 0x5c]
add esp, 8
test edx, edx
je case.default.0x45ba67
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], eax
cmp eax, 7
jne 0x45b9ee
mov edx, dword [ebp + 8]
mov ecx, dword [ebp]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x20], ecx
push edx
lea eax, [ebx + 1]
lea ecx, [edi - 1]
push ebp
mov dword [ebp], eax
mov dword [ebp + 8], ecx
call fcn.0045b3d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x60], 3
mov dword [ebp], eax
mov dword [ebp + 8], ecx
jne 0x45ba2a
mov eax, 8
jmp 0x45b9f7
cmp edx, 3
jne 0x45ba32
mov dword [esp + 0x30], esi
test esi, esi
je case.default.0x45ba67
inc ebx
dec edi
cmp dword [esp + 0x30], 0
mov ecx, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
ja 0x45ba32
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00493576
add esp, 0x5c
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
dec eax
mov dword [esp + 0x44], eax
lea eax, [edx + ecx*4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx]
mov edx, dword [esp + 0x38]
add ebx, dword [edx + 0x10]
mov edx, edi
lea esi, [esp + 0x10]
call fcn.0045afb0
mov eax, dword [esp + 0x44]
cmp eax, 7
ja case.default.0x45ba67
jmp dword [eax*4 + 0x45bd48]
lea eax, [esp + 0x10]
push eax
mov esi, edi
call fcn.0045b8c0
jmp 0x45baac
lea ecx, [esp + 0x10]
push 0
push ecx
mov eax, edi
call fcn.0045a920
add esp, 8
jmp 0x45baaf
lea edx, [esp + 0x10]
push 3
push edx
mov eax, edi
call fcn.0045a920
add esp, 8
jmp 0x45baaf
lea eax, [esp + 0x10]
push eax
call fcn.0045a8c0
add esp, 4
mov ecx, dword [esp + 0x38]
movzx ecx, byte [ecx + 0x14]
dec ecx
je 0x45bacc
dec ecx
je 0x45bac4
mov dword [ebx], eax
jmp 0x45bcd8
mov word [ebx], ax
jmp 0x45bcd8
mov byte [ebx], al
jmp 0x45bcd8
mov ecx, dword [ebp + 0x10]
mov ebp, dword [esp + 0x10]
mov esi, edi
sub esi, ebp
mov dword [esp + 0x20], ecx
cmp ebp, dword [esp + 0x14]
jae 0x45bcd0
mov eax, dword [esp + 0x54]
cmp eax, 4
jne 0x45baf9
dec esi
inc ebp
jmp 0x45bb05
cmp eax, 2
jne case.default.0x45ba67
inc ebp
sub esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x10], ebp
test eax, eax
je 0x45bb23
push eax
push ecx
call fcn.0043fac0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [ebx], 0
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 1]
push eax
push ecx
call fcn.004418b0
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x45ba17
push esi
push ebp
push edi
call fcn.004936a0
mov byte [esi + edi], 0
add esp, 0xc
mov dword [ebx], edi
jmp 0x45bcd0
push 0
lea ecx, [esp + 0x5c]
push ecx
push 4
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.0045b7d0
add esp, 0x14
cmp eax, 4
jl case.default.0x45ba67
mov eax, dword [esp + 0x58]
push eax
call fcn.0043bd30
mov ecx, dword [esp + 0x60]
push ecx
mov dword [ebx], eax
call fcn.0043bd30
mov edx, dword [esp + 0x68]
push edx
mov dword [ebx + 4], eax
call fcn.0043bd30
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x70]
push eax
call fcn.0043bd30
add esp, 0x10
mov dword [ebx + 0xc], eax
jmp 0x45bcd8
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0
add edi, edi
add edi, edi
push edi
push 0
push 4
push eax
mov dword [esp + 0x38], eax
call fcn.00443590
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 0x18
mov dword [esp + 0x2c], ebx
test eax, eax
jne 0x45ba17
mov dword [esp + 0x1c], eax
mov ebp, ebx
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push 0
push ebp
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0045b7d0
add esp, 0x14
test eax, eax
js 0x45bd19
cmp eax, dword [esp + 0x18]
jb 0x45bd19
mov edx, esi
lea esi, [esp + 0x10]
call fcn.0045afb0
mov eax, dword [esp + 0x1c]
inc eax
add ebp, edi
mov dword [esp + 0x1c], eax
cmp eax, 4
jb 0x45bbf0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45bcc2
lea ecx, [eax + eax*2]
lea ebp, [ebx + eax*8]
mov eax, dword [esp + 0x40]
lea edx, [ebx + ecx*4]
mov ecx, dword [esp + 0x18]
add edi, ebx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ecx
jmp 0x45bc74
mov eax, dword [esp + 0x48]
mov edx, dword [ebx]
mov esi, dword [eax + ebx]
push edx
call fcn.0043bd30
mov dword [esi], eax
mov eax, dword [edi]
push eax
call fcn.0043bd30
mov dword [esi + 4], eax
mov ecx, dword [ebp]
push ecx
call fcn.0043bd30
mov edx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov eax, dword [edx]
push eax
call fcn.0043bd30
add dword [esp + 0x2c], 4
add esp, 0x10
add ebx, 4
add edi, 4
add ebp, 4
dec dword [esp + 0x34]
mov dword [esi + 0xc], eax
jne 0x45bc70
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call fcn.0043fac0
add esp, 8
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x24], 4
dec eax
mov dword [esp + 0x30], eax
test eax, eax
jne 0x45ba42
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00493576
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00493576
add esp, 0x5c
ret
mov edx, dword [esp + 0x20]
push ebx
push edx
mov dword [esp + 0x30], 3
call fcn.0043fac0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x30]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493576
add esp, 0x5c
ret