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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
push esi
push edi
mov eax, dword [ebp + 0x3c]
mov byte [esp + 0x13], 0
add eax, ebp
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
cmp edi, ecx
lea esi, [eax + edi]
mov dword [esp + 0x24], esi
jae 0x45c0ea
lea edx, [edi + 0x28]
cmp edx, ecx
jae 0x45c0ea
cmp eax, ecx
jae 0x45c0ea
cmp esi, ecx
jae 0x45c0ea
mov ecx, dword [edi + ebp + 0x14]
mov edx, dword [edi + ebp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + ebp + 0x20]
cmp ecx, edi
mov dword [esp + 0x14], edx
jb 0x45c0ea
shl edx, 2
lea ebx, [edx + ecx]
cmp ebx, esi
jae 0x45c0ea
cmp edx, eax
jae 0x45c0ea
mov edx, dword [edi + ebp + 0x24]
cmp edx, edi
jb 0x45c0ea
mov eax, dword [esp + 0x14]
lea eax, [edx + eax*2]
cmp eax, esi
jae 0x45c0ea
mov eax, dword [edi + ebp + 0x1c]
cmp eax, edi
jb 0x45c0ea
mov ebx, dword [esp + 0x1c]
lea ebx, [eax + ebx*4]
cmp ebx, esi
jae 0x45c0ea
add eax, ebp
add ecx, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
add edx, ebp
xor ebx, ebx
test eax, eax
jbe 0x45c0ea
mov dword [esp + 0x70], edx
mov dword [esp + 0x20], ecx
jmp 0x45bef7
mov esi, dword [esp + 0x24]
mov eax, dword [ecx]
cmp eax, edi
jb 0x45bf5b
cmp eax, esi
jae 0x45bf5b
mov esi, dword [esp + 0x78]
add eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45bf2b
test cl, cl
je 0x45bf27
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45bf2b
add eax, 2
add esi, 2
test cl, cl
jne 0x45bf07
xor eax, eax
jmp 0x45bf30
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45bf5b
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
mov ax, word [eax]
and eax, 0xffff
cmp eax, ecx
jae 0x45bf5b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x45bf8a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
inc ebx
add ecx, 4
add edx, 2
cmp ebx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], edx
jb 0x45bef3
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp eax, edi
jb 0x45c0d2
cmp eax, dword [esp + 0x24]
jae 0x45c0d2
add eax, ebp
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x45c0ea
mov cl, byte [eax + 1]
lea ebx, [eax + 1]
test cl, cl
je 0x45c0ea
mov esi, dword [esp + 0x18]
mov edi, str..dll
sub eax, esi
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
sub edx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x40
sub eax, ecx
cmp edx, eax
jae 0x45c0ea
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
add esi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + edx + 0x30]
mov edx, ecx
mov esi, str..dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
lea edx, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x78]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
push edi
call fcn.0045bb00
add esp, 0x1c
cmp al, 1
jne 0x45c0ea
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push esi
lea edx, [esp + 0x20]
push edi
push edx
push ebx
push eax
push ecx
call fcn.0045be20
add esp, 0x1c
cmp al, 1
jne 0x45c0b8
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x45c0a0
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov dword [edx], eax
jmp 0x45c0a9
mov ecx, dword [esp + 0x88]
mov dword [ecx], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13], 1
mov dword [edx], eax
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x13], 1
mov dword [edx], 0
mov dword [ecx], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret