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

Disassembly:
push 0xffffffffffffffff
push 0x647df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, ecx
push 0x6d0ac4
push edi
mov dword [esp + 0x18], esi
call fcn.0060b21f
mov ecx, eax
xor ebx, ebx
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x14], ecx
jne 0x4faabb
call fcn.0060c9c8
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
push ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1100
mov dword [esp + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [0x6fd7a8]
mov ecx, dword [0x6fca90]
mov esi, dword [esp + 0x10]
cmp eax, ebx
je 0x4faa7f
cmp edi, ebx
je 0x4faa7f
cmp esi, ebx
je 0x4faa7f
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x34], bx
push ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 1
call fcn.004027e0
push edi
lea ecx, [esp + 0x4c]
call fcn.00401ee0
mov bl, 2
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], bl
call fcn.00401ee0
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 3
call fcn.00401070
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x18], edi
je 0x4faa50
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], bl
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], 1
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 0
call fcn.00401070
mov esi, dword [esp + 0x10]
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4faa92
lea eax, [esp + 0x1c]
mov edx, dword [0x6fd788]
push 0x30
push edx
push eax
push ebx
call fcn.00457200
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00401070
jmp 0x4fabe1
mov eax, dword [0x6f7b78]
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ebp, dword [esi + 0x14]
mov byte [esp + 0x5c], 5
neg ebp
sbb ebp, ebp
cmp ebp, ebx
je 0x4fabab
jmp 0x4faaee
mov esi, dword [esp + 0x10]
cmp ebp, 0xffffffff
mov ecx, ebp
jne 0x4fab17
mov esi, dword [esi + 0x10]
xor eax, eax
cmp esi, ebx
jbe 0x4fab13
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x4fab13
inc eax
add edx, 4
cmp eax, esi
jb 0x4fab05
mov esi, dword [esp + 0x10]
mov ebp, dword [ecx]
cmp ebp, ebx
jne 0x4fab40
mov eax, dword [ecx + 4]
mov esi, dword [esi + 0x10]
inc eax
cmp eax, esi
jae 0x4fab40
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
lea edx, [edx + eax*4]
mov ebp, dword [edx]
cmp ebp, ebx
jne 0x4fab40
inc eax
add edx, 4
cmp eax, esi
jb 0x4fab32
mov edi, dword [ecx + 8]
lea esi, [ecx + 0xc]
push esi
lea ecx, [esp + 0x28]
call fcn.00622ec3
lea eax, [esi + 4]
lea ecx, [esp + 0x28]
push eax
call fcn.00622ec3
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x24]
push edx
mov dword [esp + 0x30], ecx
push eax
push edi
lea ecx, [esp + 0x70]
push str._ld__s_n_s_n
push ecx
call fcn.0061fae1
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
push edx
mov edx, dword [esp + 0x7c]
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push edx
call fcn.0060b0b5
add esp, 0x24
cmp ebp, ebx
jne 0x4faaea
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0060b038
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 6
call fcn.00622d8a
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 4
call fcn.00622d8a
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4