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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
mov dword [esp + 0x3c], eax
mov edx, ecx
mov dword [esp + 0x14], edx
push esi
push edi
cmp ebx, 0xa
jb 0x4507c1
add eax, edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
lea edi, [ecx + 4]
mov dword [esp + 0xc], edi
movzx esi, word [eax]
mov dword [esp + 0x88], esi
movzx esi, word [eax + 2]
mov dword [esp + 0x10], esi
movzx esi, word [eax + 4]
mov dword [esp + 0x28], esi
mov esi, ebx
movzx ebx, word [eax]
add eax, 6
sub esi, dword [esp + 0x28]
sub esi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
sub esi, ebx
add ebx, eax
sub esi, 6
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
add eax, 3
shr eax, 2
add edx, eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x14], edx
lea ebx, [edx + eax]
add eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ebx
mov ebx, eax
mov eax, dword [ecx]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], eax
cmp esi, dword [ebp + 0xc]
ja 0x4507c1
push dword [esp + 0x88]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
call fcn.0044f780
add esp, 4
cmp eax, 0xffffff88
ja 0x4507c6
push dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
call fcn.0044f780
add esp, 4
cmp eax, 0xffffff88
ja 0x4507c6
push dword [esp + 0x28]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
call fcn.0044f780
add esp, 4
cmp eax, 0xffffff88
ja 0x4507c6
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x30]
push esi
lea edx, [edx + eax]
call fcn.0044f780
add esp, 4
cmp eax, 0xffffff88
ja 0x4507c6
lea ecx, [esp + 0x78]
call fcn.00445f30
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00445f30
lea ecx, [esp + 0x58]
or esi, eax
call fcn.00445f30
lea ecx, [esp + 0x48]
or esi, eax
call fcn.00445f30
or esi, eax
jne 0x4506c5
mov eax, dword [esp + 0x40]
add eax, 0xfffffff9
mov dword [esp + 0x2c], eax
cmp ebx, eax
jae 0x4506c5
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
neg edi
mov edx, dword [esp + 0x48]
and ecx, 0x1f
shl edx, cl
and edi, 0x1f
mov ebx, dword [esp + 0xc]
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
movzx eax, byte [ebx + edx*2 + 1]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + edx*2]
mov byte [ecx], al
inc ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
movzx eax, byte [eax + edx*2]
movzx ebx, byte [ebx + edx*2 + 1]
mov byte [ecx], al
inc ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
and ecx, 0x1f
add ebx, dword [esp + 0x5c]
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0xc]
movzx edi, byte [ecx + edx*2 + 1]
movzx eax, byte [ecx + edx*2]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
add edi, dword [esp + 0x6c]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, esi
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + edx*2 + 1]
add esi, eax
movzx eax, byte [ecx + edx*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov ecx, edx
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x10]
shr eax, cl
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ecx + eax*2 + 1]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [ecx + eax*2]
mov ecx, dword [esp + 0x1c]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov edx, dword [esp + 0x58]
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + edx*2 + 1]
add eax, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
movzx eax, byte [ecx + edx*2]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
mov ecx, dword [esp + 0x18]
movzx eax, byte [eax + edx*2 + 1]
add eax, edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
movzx eax, byte [edi + edx*2]
mov edx, dword [esp + 0x78]
mov byte [ecx], al
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, esi
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
lea ecx, [esp + 0x78]
movzx eax, byte [edi + edx*2 + 1]
add eax, esi
mov dword [esp + 0x7c], eax
movzx eax, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
mov dword [esp + 0x24], ebx
call fcn.00445f30
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00445f30
lea ecx, [esp + 0x58]
or esi, eax
call fcn.00445f30
lea ecx, [esp + 0x48]
or esi, eax
call fcn.00445f30
or esi, eax
mov eax, dword [esp + 0x2c]
je 0x4504f8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
cmp ecx, eax
ja 0x4507c1
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x14], edx
ja 0x4507c1
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x18], edx
ja 0x4507c1
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x48]
push esi
push edi
push eax
call fcn.00446ec0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x64]
add esp, 0xc
push esi
push edi
push dword [esp + 0x40]
call fcn.00446ec0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x74]
add esp, 0xc
push esi
push edi
push dword [esp + 0x44]
call fcn.00446ec0
add esp, 0xc
lea edx, [esp + 0x78]
mov ecx, ebx
push esi
push edi
push dword [esp + 0x48]
call fcn.00446ec0
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, dword [esp + 0x54]
jne 0x45075f
cmp dword [esp + 0x4c], 0x20
jne 0x45075f
mov ecx, 1
jmp 0x450761
xor ecx, ecx
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x450779
cmp dword [esp + 0x5c], 0x20
jne 0x450779
mov edx, 1
jmp 0x45077b
xor edx, edx
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x74]
jne 0x450793
cmp dword [esp + 0x6c], 0x20
jne 0x450793
mov esi, 1
jmp 0x450795
xor esi, esi
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x84]
jne 0x4507b3
cmp dword [esp + 0x7c], 0x20
jne 0x4507b3
mov eax, 1
jmp 0x4507b5
xor eax, eax
and eax, esi
and eax, edx
test ecx, eax
mov eax, dword [esp + 0x44]
jne 0x4507c6
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret