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

Disassembly:
push 0x1c
mov eax, 0x4c800e
call fcn.0040193b
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 0x7c], ebx
jle 0x40512a
mov eax, dword [edi + 0x84]
mov ecx, dword [eax + esi*4]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x20], ecx
add ecx, 0x78
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
push dword [ecx + 8]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [eax + esi*8], ebx
jbe 0x4050ce
mov edi, dword [ebp - 0x24]
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x4050b2
mov dword [eax], ebx
jmp 0x4050b4
mov eax, ebx
push eax
mov ecx, edi
call fcn.00403b28
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [eax + esi*8]
jb 0x4050a1
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0x8c
mov dword [ebp - 0x24], ecx
push dword [ecx + 8]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [eax + esi*8 + 4], ebx
jbe 0x405120
mov edi, dword [ebp - 0x24]
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x405103
mov dword [eax], ebx
jmp 0x405105
mov eax, ebx
push eax
mov ecx, edi
call fcn.00403b28
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [eax + esi*8 + 4]
jb 0x4050f2
mov edi, dword [ebp - 0x10]
inc esi
cmp esi, dword [edi + 0x7c]
jl 0x405072
mov eax, ebx
mov dword [ebp - 0x18], ebx
cmp dword [edi + 0x28], eax
jle 0x405255
lea ecx, [edi + 0xc]
mov esi, dword [edi + 0x30]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x28]
push edx
push dword [esi + eax*8]
call fcn.00402363
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 0xc]
push dword [esi + eax*8 + 4]
call fcn.00404b0e
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x9c]
mov edx, dword [eax + edx*4]
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp - 0x20]
push edx
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edi + 0x6c]
push ecx
mov ecx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx*4]
call fcn.0040972d
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x84]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4051bf
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
mov esi, 0x4d4250
push esi
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x84]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4051e4
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push esi
push ecx
call dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x40521e
test ecx, ecx
je 0x40521e
mov ecx, dword [eax]
mov esi, 0x80000
push esi
push dword [ebp - 0x20]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x405231
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x405242
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 0xc]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x28]
jl 0x40513b
mov esi, ebx
cmp dword [edi + 0x3c], ebx
jle 0x40529d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x44]
lea ecx, [edi + 0xc]
push dword [eax + esi*4]
call fcn.00402363
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x84]
push dword [eax + esi*4]
mov eax, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + ecx*4]
call fcn.00403a26
inc esi
cmp esi, dword [edi + 0x3c]
jl 0x40525c
xor ebx, ebx
cmp dword [edi + 0x50], ebx
jle 0x4052e1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0xc]
push dword [eax + ebx*4]
call fcn.00404b0e
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x84]
push dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x9c]
mov ecx, dword [eax + ecx*4]
call fcn.00403a26
inc ebx
cmp ebx, dword [edi + 0x50]
jl 0x4052a2
xor eax, eax
call fcn.00401a13
ret 8