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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, ecx
mov dword [esp + 0x14], edx
push ebx
push esi
push edi
cmp byte [eax + 2], 0
movzx edi, byte [eax + 0xa]
mov dword [esp + 0x2c], eax
lea ecx, [edi + edx]
je 0x457bf4
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
add ebx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], eax
cmp ebx, 0x80
jae 0x457bc1
lea eax, [edi + edx]
mov byte [eax], bl
mov eax, 1
jmp 0x457bdc
mov ecx, dword [esp + 0x20]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [edi + ecx]
call fcn.0043f320
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [esp + 0x20]
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add edi, eax
lea ecx, [edi + edx]
call fcn.0043f320
add esp, 8
jmp 0x457c2b
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov esi, ebx
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
cmp ebx, 0x80
jae 0x457c1b
mov byte [ecx], bl
mov eax, 1
jmp 0x457c28
mov eax, ebx
cdq
push edx
push eax
call fcn.0043f320
add esp, 8
movzx eax, al
add edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
add edi, dword [esp + 0x20]
movzx ecx, word [eax + 0xe]
mov dword [esp + 0x2c], ecx
cmp ebx, ecx
jg 0x457c82
mov ecx, dword [esp + 0x24]
mov eax, 4
add ecx, ebx
cmp ecx, eax
push esi
push dword [esp + 0x10]
cmovl ecx, eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
sub ebx, esi
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [eax + 0x10]
xor edx, edx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x24]
mov eax, ebx
sub eax, esi
sub ecx, 4
div ecx
lea eax, [edx + esi]
mov edx, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
cmovle esi, eax
mov eax, dword [ebp + 0xc]
add edx, esi
lea ecx, [edx + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
add eax, edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x10]
cmovle esi, eax
cmp ecx, esi
jl 0x457ced
push esi
push dword [esp + 0x10]
push edi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x457d09
test ecx, ecx
jle 0x457d00
push ecx
push dword [esp + 0x10]
mov esi, ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x457d09
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
sub eax, esi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x457f61
mov ecx, dword [esp + 0x1c]
add edi, esi
add dword [esp + 0xc], esi
sub ecx, esi
sub dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
jne 0x457cd5
mov edi, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], esi
cmp byte [edi + 0x11], 0
je 0x457db3
jmp 0x457d56
mov edi, dword [esp + 0x14]
inc ebx
cmp ebx, 2
jae 0x457d63
mov edi, dword [edi + 0x20]
xor ecx, ecx
jmp 0x457d95
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x24]
mov eax, esi
mov edi, dword [edi + 0x20]
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x5352fc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div edi
dec eax
cmp esi, eax
sete cl
add ecx, 2
add ecx, esi
cmp ecx, ebx
je 0x457d52
mov eax, dword [0x5352fc]
xor edx, edx
div edi
mov edi, dword [esp + 0x14]
inc eax
cmp ebx, eax
je 0x457d56
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
push 0
lea eax, [esp + 0x28]
mov ecx, edi
push ebx
push eax
lea edx, [esp + 0x34]
call fcn.00456d40
mov ebx, dword [esp + 0x30]
add esp, 0xc
cmp byte [edi + 0x11], 0
mov dword [esp + 0x10], eax
je 0x457e56
test eax, eax
jne 0x457ef6
lea eax, [esp + 0x10]
test esi, esi
push eax
setne al
mov edx, ebx
add al, 3
mov ecx, edi
movzx eax, al
push esi
push eax
call fcn.004513a0
mov esi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x457e62
mov edx, dword [esp + 0x28]
test edx, edx
je 0x457e5a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x457ebc
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x457ef6
mov ecx, dword [esp + 0x2c]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x457ecc
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x457ec5
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x457ecc
mov ecx, edx
call fcn.00444eb0
jmp 0x457e5a
mov ecx, edx
call fcn.00444eb0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [ecx], 0
mov edi, dword [eax + 0x38]
mov eax, dword [esp + 0x14]
add edi, 4
mov esi, dword [eax + 0x24]
sub esi, 4
jmp 0x457cc9
mov edx, dword [esp + 0x20]
test edx, edx
je 0x457f56
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x457f4f
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov eax, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.00444eb0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
test edx, edx
je 0x457fbf
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x457fb8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.00444eb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret