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

Disassembly:
sub esp, 0x28c
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
mov edx, dword [esp + 0x2a0]
push esi
push edi
mov eax, dword [ebp + 0x3c]
add eax, ebp
mov esi, dword [eax + 0x78]
mov ecx, dword [eax + 0x7c]
cmp esi, edx
mov dword [esp + 0x18], esi
lea eax, [ecx + esi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jae 0x458a01
lea edi, [esi + 0x28]
cmp edi, edx
jae 0x458a01
cmp ecx, edx
jae 0x458a01
cmp eax, edx
jae 0x458a01
mov ecx, dword [esi + ebp + 0x1c]
mov ebx, dword [esp + 0x2b0]
mov edi, dword [esi + ebp + 0x14]
mov edx, dword [esi + ebp + 0x18]
add ebx, ecx
cmp edi, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ebx
jb 0x458a01
test edi, edi
jbe 0x458a01
mov ebx, dword [esi + ebp + 0x20]
cmp ebx, esi
jb 0x458a01
shl edx, 2
lea edi, [edx + ebx]
cmp edi, eax
jae 0x458a01
cmp edx, dword [esp + 0x10]
jae 0x458a01
mov edx, dword [esi + ebp + 0x24]
cmp edx, esi
jb 0x458a01
mov edi, dword [esp + 0x1c]
lea edi, [edx + edi*2]
cmp edi, eax
jae 0x458a01
cmp ecx, esi
jb 0x458a01
mov esi, dword [esp + 0x20]
shl esi, 2
lea edi, [esi + ecx]
cmp edi, eax
jae 0x458a01
cmp esi, dword [esp + 0x10]
jae 0x458a01
mov eax, dword [esp + 0x2b4]
cmp ecx, eax
jae 0x458a01
dec edi
cmp edi, eax
jae 0x458a01
mov eax, dword [esp + 0x20]
add ecx, ebp
add ebx, ebp
add edx, ebp
xor esi, esi
mov dword [esp + 0x38], ebx
test eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], esi
jbe 0x458a01
mov eax, dword [esp + 0x28]
mov edx, ecx
sub edx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
mov ecx, dword [edx + eax]
mov edi, dword [esp + 0x2a8]
cmp ecx, edi
jae 0x4589de
cmp ecx, dword [esp + 0x18]
jb 0x4588c7
cmp ecx, dword [esp + 0x24]
jb 0x4589de
mov edi, dword [eax]
cmp ecx, edi
je 0x4589de
mov edx, dword [esp + 0x1c]
xor esi, esi
xor eax, eax
test edx, edx
jbe 0x458912
mov edx, dword [esp + 0x30]
xor ebx, ebx
mov bx, word [edx]
cmp ebx, dword [esp + 0x14]
je 0x4588fa
mov ebx, dword [esp + 0x1c]
inc eax
add edx, 2
cmp eax, ebx
jb 0x4588e1
jmp 0x458912
mov edx, dword [esp + 0x38]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x18]
cmp eax, edx
jb 0x458912
cmp eax, dword [esp + 0x24]
jae 0x458912
lea esi, [eax + ebp]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x28]
sub edx, ebx
add edx, eax
mov eax, dword [esp + 0x2ac]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
add edx, eax
add ecx, eax
add edi, eax
mov dword [esp + 0x3c], edx
test esi, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x50], 0
je 0x458968
push 0x40
lea eax, [esp + 0x54]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x8f], 0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx + ebp + 0x10]
mov ecx, dword [esp + 0x2a0]
add edx, esi
push eax
push ecx
mov dword [esp + 0x98], edx
mov word [esp + 0x9c], 0
call fcn.00458720
add esp, 8
test eax, eax
je 0x4589b7
push 0x104
lea edx, [esp + 0x98]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [esp + 0x2c0]
mov edx, dword [esp + 0x2bc]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call dword [esp + 0x2c4]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc esi
add ebx, 4
add eax, 4
cmp esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
jb 0x4588a5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret