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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a84e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004dc540
xor edi, edi
cmp eax, edi
jne 0x4c7094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004dc830
call fcn.004c86d0
mov dword [esp + 0x40], eax
mov byte [eax + 0x3d], 1
mov eax, dword [esp + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x40]
mov dword [eax], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 8], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x80], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 1
lea edx, [esp + 0x14]
push edx
call eax
mov byte [esp + 0x80], 1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
cmp eax, edi
jle 0x4c7114
lea ecx, [eax - 1]
cmp ecx, edi
jl 0x4c71c0
cmp ecx, eax
jg 0x4c71c0
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4c7114
mov edx, 0x5bd0e8
lea edi, [esp + 0x10]
call fcn.00412930
push 0xb
push str.enguser.dat
lea ecx, [esp + 0x18]
push ecx
call fcn.00403fc0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [edi], eax
call fcn.004c67f0
mov ebx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004c75d0
mov ecx, dword [esp + 0x40]
mov edi, dword [ecx]
lea esi, [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jmp 0x4c7170
test esi, esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], edx
je 0x4c7184
lea eax, [esp + 0x3c]
cmp esi, eax
je 0x4c7189
call fcn.00578ff3
cmp edi, dword [esp + 0x20]
je 0x4c71dd
test esi, esi
jne 0x4c7198
call fcn.00578ff3
cmp edi, dword [esi + 4]
jne 0x4c71a2
call fcn.00578ff3
cmp dword [edi + 0x18], 1
jne 0x4c71ca
push edi
push esi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004c7a00
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x4c7160
push 0x80070057
call fcn.00404550
lea esi, [esp + 0x14]
call fcn.004c8610
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x4c7170
mov eax, dword [esp + 0x40]
mov edi, dword [eax]
lea esi, [esp + 0x3c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
nop
test esi, esi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
je 0x4c7204
lea edx, [esp + 0x3c]
cmp esi, edx
je 0x4c7209
call fcn.00578ff3
cmp edi, dword [esp + 0x28]
je 0x4c7346
test esi, esi
jne 0x4c721c
call fcn.00578ff3
cmp edi, dword [esi + 4]
jne 0x4c7226
call fcn.00578ff3
lea eax, [esp + 0x1c]
add edi, 0xc
push eax
mov eax, edi
mov esi, ebx
call fcn.004c7da0
mov esi, dword [esp + 0x1c]
test esi, esi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], ecx
je 0x4c724a
cmp esi, ebx
je 0x4c724f
call fcn.00578ff3
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
je 0x4c727c
push eax
push esi
lea edx, [esp + 0x3c]
push edx
push ebx
call fcn.004c7a00
lea esi, [esp + 0x14]
call fcn.004c8610
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x4c71f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 4]
jne 0x4c728e
call fcn.00578ff3
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x54], ecx
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x58], edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x60], ecx
mov cl, byte [edi + 0x28]
sub eax, 0x10
mov dword [esp + 0x64], edx
mov byte [esp + 0x6c], cl
call fcn.004088d0
add eax, 0x10
mov dword [esp + 0x70], eax
lea edx, [esp + 0x70]
mov byte [esp + 0x80], 2
or esi, 1
push edx
mov ecx, ebx
mov dword [esp + 0x54], esi
call fcn.004c7890
mov esi, eax
lea eax, [esp + 0x48]
call fcn.004c6740
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7330
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.004c8610
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x4c71f0
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov edi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], ecx
je 0x4c7364
cmp edi, ebx
je 0x4c7369
call fcn.00578ff3
cmp esi, dword [esp + 0x30]
je 0x4c73e3
test edi, edi
jne 0x4c7378
call fcn.00578ff3
cmp esi, dword [edi + 4]
jne 0x4c7382
call fcn.00578ff3
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x14]
push edx
call fcn.0040a000
mov byte [esp + 0x80], 3
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004dcaa0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c73cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.004c8610
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4c7355
cmp dword [0x5f9b20], 0
je 0x4c73fd
call fcn.0040cbf0
mov eax, dword [0x5fe584]
add dword [eax + 0xc04], 1
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x80], 0xffffffff
call fcn.004c81f0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4