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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
push edi
call fcn.00478930
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
add esp, 4
cmp ebx, 8
mov dword [esp + 0x40], 0
jne 0x451075
mov al, byte [esp + 0x68]
test al, al
je 0x451075
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push edi
call fcn.004781e0
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push edi
call fcn.00478220
mov ebp, dword [esp + 0x6c]
test eax, eax
setne byte [esp + 0x34]
mov eax, ebp
imul eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.0045d3a6
mov edi, dword [esp + 0x74]
mov dword [esp + 0x78], eax
lea eax, [ebp + ebp*2 + 3]
cdq
and edx, 3
add eax, edx
mov ecx, eax
sar ecx, 2
shl ecx, 2
lea eax, [ebp + 3]
cdq
mov dword [esp + 0x28], ecx
imul ecx, edi
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
shl esi, 2
push ecx
mov dword [esp + 0x30], esi
call fcn.0045d3a6
imul esi, edi
push esi
mov dword [esp + 0x38], eax
call fcn.0045d3a6
mov esi, eax
mov eax, dword [esp + 0x84]
add esp, 0x20
test eax, eax
mov dword [esp + 0x24], esi
jne 0x45123a
test edi, edi
jle 0x4513f5
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
call fcn.004778d0
add esp, 0xc
cmp ebx, 0x18
je 0x4511f2
cmp ebx, 0x20
je 0x4511b0
test ebp, ebp
jle 0x45120a
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
xor edi, edi
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, edi
cdq
and edx, 7
push ebx
add eax, edx
mov edx, dword [esp + 0x78]
push ecx
sar eax, 3
push esi
add eax, edx
push eax
push ebp
call 0x451500
mov eax, dword [esp + 0x8c]
add esp, 0x28
inc esi
add edi, ebx
add ebp, 3
dec eax
mov dword [esp + 0x64], eax
jne 0x45115b
mov ebp, dword [esp + 0x58]
jmp 0x45120a
test ebp, ebp
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
jle 0x45120a
mov dword [esp + 0x64], ebp
mov edx, eax
mov bp, word [edx]
mov ecx, edi
mov word [ecx], bp
mov dl, byte [edx + 2]
mov byte [ecx + 2], dl
mov dl, byte [eax + 3]
or cl, 0xff
sub cl, dl
mov byte [esi], cl
mov ecx, dword [esp + 0x64]
inc esi
add eax, 4
add edi, 3
dec ecx
mov dword [esp + 0x64], ecx
jne 0x4511c0
mov ebp, dword [esp + 0x58]
jmp 0x45120a
lea ecx, [ebp + ebp*2]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x28]
add esi, edx
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], eax
jne 0x451123
jmp 0x4513f1
cmp eax, 1
jne 0x4514e2
lea eax, [ebp + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x28], eax
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
xor esi, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], esi
test ecx, ecx
mov dword [esp + 0x1c], 0
jbe 0x4513e1
lea eax, [esi + 0x497444]
mov edx, dword [eax]
xor edi, edi
test edx, edx
mov dword [esp + 0x3c], edi
jle 0x4513d0
mov ebp, dword [esi + 0x49747c]
mov ecx, dword [esp + 0x1c]
imul ebp, edi
lea eax, [ecx*8]
mov ecx, dword [esi + 0x497460]
add ebp, eax
mov eax, dword [esp + 0x5c]
add ebp, ecx
cmp ebp, eax
jge 0x4513af
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
push 0
push edx
push eax
call fcn.004778d0
mov ecx, dword [esp + 0x34]
xor eax, eax
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x64], eax
jbe 0x4513af
lea edi, [esi + 0x4974b4]
jmp 0x4512ed
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + 0x497498]
lea edx, [ecx + eax*8]
mov eax, dword [edi]
xor esi, esi
test eax, eax
mov dword [esp + 0x44], edx
jle 0x451392
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x4974d0]
mov edx, dword [esp + 0x44]
imul eax, esi
mov ecx, dword [esp + 0x58]
add eax, edx
cmp eax, ecx
jge 0x451392
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, ebp
imul ecx, dword [esp + 0x28]
push ebx
push edx
mov edx, dword [esp + 0x40]
add ecx, eax
add ecx, edx
mov edx, dword [edi]
imul edx, dword [esp + 0x80]
add edx, esi
imul edx, ebx
push ecx
mov ecx, dword [esp + 0x80]
shr edx, 3
add edx, ecx
mov ecx, ebp
imul ecx, dword [esp + 0x30]
push edx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x3c]
add eax, ecx
add edx, eax
push edx
call 0x451500
mov eax, dword [edi]
add esp, 0x28
inc esi
cmp esi, eax
jl 0x451306
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x64], eax
jb 0x4512e9
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + 0x497444]
lea eax, [esi + 0x497444]
inc edi
cmp edi, ecx
mov dword [esp + 0x3c], edi
jl 0x451291
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
inc edx
cmp edx, ecx
mov dword [esp + 0x1c], edx
jb 0x451281
add esi, 4
cmp esi, 0x1c
mov dword [esp + 0x54], esi
jl 0x45126b
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0045d39b
push 1
push edi
push ebp
call fcn.0044a500
add esp, 0x10
xor edx, edx
test edi, edi
mov dword [0x5a64a8], eax
jle 0x451455
mov esi, dword [esp + 0x18]
mov dword [esp + 0x58], esi
jmp 0x451425
mov eax, dword [0x5a64a8]
mov edi, dword [eax + 8]
mov ecx, dword [esp + 0x10]
imul edi, edx
add edi, dword [eax + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x5c]
inc edx
add esi, ecx
cmp edx, eax
mov dword [esp + 0x58], esi
jl 0x451420
mov al, byte [esp + 0x20]
test al, al
jne 0x451471
mov al, byte [esp + 0x68]
test al, al
je 0x45146c
cmp ebx, 0x20
jge 0x451471
jmp 0x4514c3
cmp ebx, 0x10
jl 0x4514c3
mov esi, dword [esp + 0x5c]
push 1
push esi
push ebp
call fcn.0044a670
add esp, 0xc
xor edx, edx
test esi, esi
mov dword [0x5a64ac], eax
jle 0x4514c3
mov ebx, dword [esp + 0x24]
jmp 0x451497
mov eax, dword [0x5a64ac]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0x28]
imul edi, edx
mov ecx, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
add edi, ebp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [esp + 0x5c]
inc edx
add ebx, ecx
cmp edx, eax
jl 0x451492
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0045d39b
mov edx, dword [esp + 0x28]
push edx
call fcn.0045d39b
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0x49cc30
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], 6
call fcn.0045ce64
nop
nop
nop
nop
nop
nop
nop
mov al, byte [esp + 0x18]
test al, al
push esi
push edi
je 0x4515fd
mov ecx, dword [esp + 0x1c]
cmp ecx, 8
jne 0x451588
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [eax]
lea esi, [edx + ecx*2]
mov cl, byte [ecx + esi + 2]
mov esi, dword [esp + 0xc]
mov byte [esi], cl
xor ecx, ecx
mov cl, byte [eax]
mov edi, ecx
lea ecx, [edx + edi*2]
mov cl, byte [edi + ecx + 1]
mov byte [esi + 1], cl
xor ecx, ecx
mov cl, byte [eax]
lea edx, [edx + ecx*2]
mov cl, byte [ecx + edx]
mov byte [esi + 2], cl
mov cl, byte [esp + 0x24]
test cl, cl
je 0x45164a
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dl, byte [eax]
mov eax, edx
cmp eax, ecx
jge 0x45157e
mov edx, dword [esp + 0x28]
push ebx
mov bl, byte [eax + edx]
mov eax, dword [esp + 0x18]
or cl, 0xff
sub cl, bl
pop ebx
pop edi
mov byte [eax], cl
pop esi
ret
mov ecx, dword [esp + 0x14]
pop edi
mov byte [ecx], 0
pop esi
ret
cmp ecx, 0x18
mov eax, dword [esp + 0x10]
jl 0x4515a3
mov esi, dword [esp + 0xc]
mov edx, eax
mov di, word [edx]
mov word [esi], di
mov dl, byte [edx + 2]
mov byte [esi + 2], dl
cmp ecx, 0x20
jl 0x4515b9
mov dl, byte [eax + 3]
or cl, 0xff
sub cl, dl
mov edx, dword [esp + 0x14]
pop edi
mov byte [edx], cl
pop esi
ret
mov cl, byte [esp + 0x24]
test cl, cl
je 0x45164a
movzx dx, byte [eax]
mov ecx, dword [esp + 0x30]
cmp dx, word [ecx + 6]
jne 0x4515f3
movzx dx, byte [eax + 1]
cmp dx, word [ecx + 4]
jne 0x4515f3
movzx ax, byte [eax + 2]
cmp ax, word [ecx + 2]
jne 0x4515f3
mov ecx, dword [esp + 0x14]
pop edi
mov byte [ecx], 0xff
pop esi
ret
mov edx, dword [esp + 0x14]
pop edi
mov byte [edx], 0
pop esi
ret
mov edx, dword [esp + 0x10]
mov al, byte [edx]
mov ecx, dword [esp + 0xc]
mov byte [ecx + 2], al
mov byte [ecx + 1], al
mov byte [ecx], al
cmp dword [esp + 0x1c], 0x10
jl 0x451626
mov cl, byte [edx + 1]
or al, 0xff
sub al, cl
mov ecx, dword [esp + 0x14]
pop edi
mov byte [ecx], al
pop esi
ret
mov al, byte [esp + 0x24]
test al, al
je 0x45164a
movzx dx, byte [edx]
mov eax, dword [esp + 0x30]
cmp dx, word [eax + 8]
mov edx, dword [esp + 0x14]
setne cl
dec ecx
and ecx, 0xff
mov byte [edx], cl
pop edi
pop esi
ret