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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, dword [esp + 0x84]
mov eax, dword [ebx + 0x78]
push ebp
shl eax, 0x10
xor edx, edx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x84]
div ecx
xor edx, edx
push edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x7c], edi
mov ebp, eax
mov eax, dword [ebx + 0x7c]
shl eax, 0x10
div edi
mov edx, dword [esp + 0x88]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x78]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.004470d0
test eax, eax
jne 0x45db73
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x6c
ret 0x14
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x30]
imul eax, ebp
mov ebp, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
imul eax, dword [esp + 0x8c]
test ebp, ebp
mov dword [esp + 0x18], ecx
jne 0x45dba7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 0x14
test ecx, ecx
jne 0x45dbba
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x6c
ret 0x14
mov edx, dword [esi + 0x74]
mov esi, dword [esp + 0x48]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x58]
add edx, esi
cmp esi, edx
mov dword [esp + 0x14], ecx
jge 0x45dcff
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x90]
imul eax, esi
add edi, ecx
add eax, ebp
sub edx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x10], edx
lea ecx, [ecx]
mov esi, ebx
mov ebx, dword [esp + 0x18]
shr esi, 0x10
imul esi, dword [esp + 0x14]
add esi, ebx
cmp ecx, edi
jge 0x45dcc9
mov ebp, dword [esp + 0x1c]
mov edx, edi
lea eax, [eax + ecx*2]
sub edx, ecx
lea eax, [ecx + eax + 2]
mov dword [esp + 0x84], edx
mov edi, edi
movzx edi, byte [eax - 2]
movzx ebx, byte [eax - 1]
mov ecx, ebp
shr ecx, 0x10
lea edx, [ecx + ecx*2]
movzx ecx, byte [edx + esi]
add ecx, edi
movzx edi, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
add edi, ebx
movzx ebx, byte [eax]
add edx, ebx
cmp ecx, 0xff
mov dword [esp + 0x20], edi
jl 0x45dc78
mov ecx, 0xff
cmp edi, 0xff
jl 0x45dc87
mov ebx, 0xff
jmp 0x45dc8b
mov bl, byte [esp + 0x20]
cmp edx, 0xff
jl 0x45dc98
mov edx, 0xff
mov byte [eax - 2], cl
mov ecx, dword [esp + 0x84]
mov byte [eax], dl
mov edx, dword [esp + 0x24]
mov byte [eax - 1], bl
add eax, 3
add ebp, edx
dec ecx
mov dword [esp + 0x84], ecx
jne 0x45dc40
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
add eax, ebx
mov ebx, dword [esp + 0x80]
add ebx, esi
dec edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x10], edx
jne 0x45dc10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 0x14