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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.0050620c
mov edi, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test eax, eax
je 0x506f64
mov eax, dword [eax + 0x70]
test eax, eax
je 0x506dc6
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x506dbc
mov eax, dword [esi]
test eax, eax
je 0x506e1c
mov edx, dword [esp + 0x78]
mov dword [edx], eax
mov dword [esp], ebx
call fcn.004e1660
xor edi, edi
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x506dae
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x6c]
nop
mov eax, dword [ebp + edi*4]
test eax, eax
je 0x506da7
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + edi*4]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call fcn.00576590
mov dword [ebx], eax
inc edi
cmp edi, dword [esp + 0x68]
jne 0x506d80
mov eax, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00505cc8
cmp eax, 0x12
jne 0x506dae
mov dword [esp + 4], 4
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.00506ac8
test eax, eax
je 0x506e30
mov dword [esp], ebx
call fcn.00505cec
mov esi, eax
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.004dda84
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x62099d
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6209fc
mov dword [esp], ebx
call fcn.004e1460
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0057662c
mov ebp, eax
test eax, eax
je 0x506fcc
inc dword [eax]
mov dword [esp], eax
call fcn.0050620c
mov edx, eax
test eax, eax
je 0x506f28
cmp eax, edi
je 0x506f28
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x24], edx
call fcn.00506bc4
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x506efc
mov dword [esp], ebx
mov dword [esp + 0x24], edx
call fcn.004e1660
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.00506cec
mov edi, eax
test eax, eax
mov edx, dword [esp + 0x24]
mov dword [esp], ebp
je 0x506f7d
call fcn.0050639c
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jle 0x507069
mov dword [esp + 0x2c], edi
jmp 0x506dae
mov dword [esp], ebp
call fcn.0050639c
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jg 0x506e1c
mov dword [esp], ebp
call fcn.004dd854
mov dword [esp + 0x2c], 1
jmp 0x506dae
mov dword [esp], ebp
call fcn.0050639c
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jle 0x506ffd
mov dword [esp + 8], 0
mov dword [esp + 4], str.couldnt_load_from_current_filesystem
mov dword [esp], ebx
call fcn.004e1460
mov dword [esp + 0x2c], 1
jmp 0x506dae
mov dword [esp], 2
call fcn.00505cd8
mov dword [esp + 0x2c], 1
jmp 0x506dae
mov dword [esp + 0x24], edx
call fcn.0050639c
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x50700a
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jle 0x50707a
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
mov dword [edx], eax
mov dword [esp], ebx
call fcn.004e1660
mov dword [esp + 0x2c], 0
jmp 0x506dae
mov dword [esp], ebx
call fcn.00505cec
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.couldnt_create_temporary_file:
mov dword [esp], ebx
call fcn.004e1460
mov dword [esp + 0x2c], 1
jmp 0x506dae
mov dword [esp], ebp
call fcn.004dd854
jmp 0x506f3f
mov dword [esp], 0x14
mov dword [esp + 0x24], edx
call fcn.004edfec
mov edi, eax
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x24]
cmp edx, 0x5efb20
je 0x507087
mov dword [edi + 8], ebp
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], 0
mov dword [esi], eax
mov eax, dword [esp + 0x78]
mov dword [eax], edi
mov edx, dword [esp + 0x7c]
mov dword [edx], 0x505064
mov dword [esp], ebx
call fcn.004e1660
mov dword [esp + 0x2c], 0
jmp 0x506dae
mov dword [esp], ebp
call fcn.004dd854
mov dword [esp + 0x2c], edi
jmp 0x506dae
mov dword [esp], ebp
call fcn.004dd854
jmp 0x506f9d
mov dword [esp + 4], 0x5efb20
mov dword [esp], ebp
call fcn.00557da4
mov dword [esp], eax
call fcn.005797b4
mov dword [edi + 0x10], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
test eax, eax
jle 0x5070c1
mov eax, dword [esp + 0x34]
jmp 0x507042
mov dword [esp], ebp
call fcn.004dd854
jmp 0x5070bb