Function at 0x451330
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 dword [esp + 0x84], edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
cmp ebx, 0xa
jb 0x45173f
mov ecx, dword [ebp + 0x10]
lea eax, [edi + edx]
mov dword [esp + 0x40], eax
lea eax, [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
movzx esi, word [eax]
mov dword [esp + 0x84], 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 + 0x30], 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 + 0x34], eax
lea eax, [edx + 3]
shr eax, 2
lea edx, [eax + edi]
lea ebx, [edx + eax]
mov dword [esp + 0x88], edx
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 + 0x14], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
cmp esi, dword [ebp + 0xc]
ja 0x45173f
push dword [esp + 0x84]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x78]
call fcn.004505c0
add esp, 4
cmp eax, 0xffffff88
ja 0x451744
push dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x68]
call fcn.004505c0
add esp, 4
cmp eax, 0xffffff88
ja 0x451744
push dword [esp + 0x28]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x58]
call fcn.004505c0
add esp, 4
cmp eax, 0xffffff88
ja 0x451744
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
mov edx, dword [esp + 0x34]
push esi
lea edx, [edx + eax]
call fcn.004505c0
add esp, 4
cmp eax, 0xffffff88
ja 0x451744
lea ecx, [esp + 0x44]
call fcn.0044cc00
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.0044cc00
lea ecx, [esp + 0x64]
or esi, eax
call fcn.0044cc00
lea ecx, [esp + 0x74]
or esi, eax
call fcn.0044cc00
or esi, eax
jne 0x451678
mov eax, dword [esp + 0x40]
add eax, 0xfffffff9
mov dword [esp + 0x30], eax
cmp ebx, eax
jae 0x451674
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x78]
neg edi
mov edx, dword [esp + 0x74]
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 + 0x48]
mov dword [esp + 0x10], edi
movzx eax, byte [ebx + edx*2 + 1]
add eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + edx*2]
mov byte [ecx], al
inc ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x68]
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 + 0x54]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
and ecx, 0x1f
add ebx, dword [esp + 0x68]
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 + 0x44]
add edi, dword [esp + 0x58]
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 + 0x74]
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 + 0x78], 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 + 0x64]
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 + 0x68], eax
movzx eax, byte [ecx + edx*2]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
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 + 0x58], eax
movzx eax, byte [edi + edx*2]
mov edx, dword [esp + 0x44]
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 + 0x44]
movzx eax, byte [edi + edx*2 + 1]
add eax, esi
mov dword [esp + 0x48], eax
movzx eax, byte [edi + edx*2]
mov byte [ebx], al
inc ebx
mov dword [esp + 0x24], ebx
call fcn.0044cc00
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.0044cc00
lea ecx, [esp + 0x64]
or esi, eax
call fcn.0044cc00
lea ecx, [esp + 0x74]
or esi, eax
call fcn.0044cc00
or esi, eax
mov eax, dword [esp + 0x30]
je 0x4514a7
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x88]
cmp edi, eax
ja 0x45173f
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], ecx
ja 0x45173f
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x18], ecx
ja 0x45173f
push dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x78]
push esi
push eax
mov ecx, edi
call fcn.0044dd60
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x70]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
push esi
push dword [esp + 0x40]
call fcn.0044dd60
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x60]
add esp, 0xc
push edi
push esi
push dword [esp + 0x44]
call fcn.0044dd60
add esp, 0xc
lea edx, [esp + 0x44]
mov ecx, ebx
push edi
push esi
push dword [esp + 0x48]
call fcn.0044dd60
add esp, 0xc
mov ecx, edx
call fcn.0044cca0
lea ecx, [esp + 0x54]
mov edx, eax
call fcn.0044cca0
lea ecx, [esp + 0x64]
and edx, eax
call fcn.0044cca0
lea ecx, [esp + 0x74]
and edx, eax
call fcn.0044cca0
test eax, edx
mov ecx, 0xffffffec
mov eax, dword [esp + 0x8c]
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret