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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x631040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov dword [esp + 0x14], edi
and dword [esp + 0x30], ebx
mov esi, edx
movsx eax, byte [edi + 0x44]
mov eax, dword [edi + eax*4 + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], eax
call fcn.0045a1ac
mov eax, dword [edi + 0x18]
mov ecx, eax
movzx edx, word [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
sub ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x24]
sub eax, edx
cmp ecx, eax
jbe 0x45a384
mov ecx, 0xf814
call fcn.0049e41a
jmp 0x45a3da
mov edi, dword [ebp + 8]
cmp esi, edx
jae 0x45a3ec
lea eax, [esi + edi]
mov dword [esp + 0x20], edi
mov ecx, edi
cmp eax, edx
jbe 0x45a3a0
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x10]
push dword [eax + 0x48]
push dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
lea ecx, [esi + ecx]
mov esi, dword [esp + 0x34]
mov edx, esi
call fcn.0045a2de
add esi, dword [esp + 0x2c]
mov ebx, eax
sub edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x28], esi
xor esi, esi
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x45a3f2
mov eax, ebx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c233c
mov esp, ebp
pop ebp
ret
sub esi, edx
mov dword [esp + 0x24], edi
test edi, edi
je 0x45a3d8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
movzx eax, word [ecx + 0x20]
sub edx, 4
test byte [ecx + 0x40], 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov edi, dword [eax + edi]
bswap edi
mov dword [esp + 0x1c], edi
jne 0x45a499
mov eax, dword [ecx + 0x1c]
dec edx
sub eax, dword [esp + 0x10]
add eax, edx
xor edx, edx
div dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 0x38]
jle 0x45a474
mov ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 3
push 0
push ecx
mov ecx, dword [eax + 0xc]
call fcn.0044a10f
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x45a460
push 7
pop eax
jmp 0x45a3da
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
add ecx, 0xc
shl eax, 2
push eax
push 0
mov dword [esp + 0x28], ecx
push dword [ecx]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x20]
or byte [eax + 0x40], 4
jmp 0x45a4cd
xor edx, edx
mov eax, esi
div dword [esp + 0x18]
lea edx, [ecx + 0xc]
mov ecx, dword [edx]
mov dword [esp + 0x20], edx
cmp dword [ecx + eax*4], 0
je 0x45a4cd
mov edi, dword [ecx + eax*4]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, esi
div dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov esi, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
test edi, edi
je 0x45a5e0
mov eax, dword [esp + 0x30]
shl eax, 2
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [ecx + eax], edi
mov ecx, dword [esp + 0x18]
cmp esi, ecx
jb 0x45a530
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + eax + 4]
test eax, eax
je 0x45a507
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x45a525
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push 0
mov edx, edi
call fcn.0045a207
mov edi, dword [esp + 0x24]
mov ebx, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
sub esi, ecx
jmp 0x45a5bf
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
add eax, esi
cmp eax, ecx
jbe 0x45a546
mov eax, ecx
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
push 2
pop edx
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x10], eax
cmove eax, edx
push eax
lea eax, [esp + 0x34]
push eax
push edi
push ecx
call dword [ecx + 0xd0]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x45a5a7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
push dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push dword [esp + 0x18]
mov edi, dword [ecx]
add ecx, 4
bswap edi
add ecx, esi
mov dword [esp + 0x28], edi
call fcn.0045a2de
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov ebx, eax
test ecx, ecx
je 0x45a5a5
call fcn.00454281
xor esi, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x24], eax
je 0x45a3d8
add dword [esp + 0x28], ecx
test ebx, ebx
jne 0x45a3d8
add dword [esp + 0x14], 4
mov edx, dword [esp + 0x20]
test edi, edi
jne 0x45a4e0
test eax, eax
je 0x45a3d8
mov ecx, 0xf8a7
jmp 0x45a37d