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

Disassembly:
push 0xffffffffffffffff
push 0x4bd530
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.0047b9f0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x78], ebp
cmp ebx, ebp
je 0x47e9a9
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x47e953
cmp eax, esi
je 0x47e9a9
sub eax, 2
cmp word [eax], 0x5c
jne 0x47e946
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x47e9a9
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x47e9a9
cmp ebx, 3
jne 0x47e995
cmp word [esi + 2], 0x3a
jne 0x47e995
push esi
mov dword [esp + 0x7c], 0xffffffff
call fcn.0047b130
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0047e0a0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.0047ba50
push esi
mov byte [esp + 0x7c], 1
mov edi, ebx
call fcn.0047dec0
add esp, 4
test al, al
jne 0x47eb65
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47eaa2
cmp ebx, ebp
je 0x47ec1d
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x47ea06
cmp eax, esi
je 0x47ec1d
sub eax, 2
cmp word [eax], 0x5c
jne 0x47e9f5
sub eax, esi
sar eax, 1
mov edi, eax
js 0x47ec1d
cmp edi, ebp
je 0x47ec1d
cmp word [esi + edi*2 - 2], 0x3a
je 0x47ec16
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.0047c6e0
mov ebp, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 3
cmp ebp, ecx
je 0x47ea7b
xor edx, edx
mov word [esi], dx
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x1c], 0
call fcn.0047b6e0
mov esi, dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, esi
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x47ea63
mov ebx, dword [ebp + 4]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x7c], 1
call fcn.0047b130
push esi
call fcn.0047dec0
add esp, 8
test al, al
jne 0x47eb65
xor ebp, ebp
jmp 0x47e9d0
push 3
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call fcn.0047b6e0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 2
call fcn.0047fca0
mov byte [esp + 0x78], 1
test al, al
jne 0x47eb17
mov edx, dword [esp + 0x60]
push edx
call fcn.0047b130
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x80], 0
call fcn.0047b130
push esi
mov dword [esp + 0x84], 0xffffffff
call fcn.0047b130
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x58]
shr ecx, 4
test cl, 1
jne 0x47eb58
mov edx, dword [esp + 0x60]
push edx
call fcn.0047b130
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x80], 0
call fcn.0047b130
push esi
mov dword [esp + 0x84], 0xffffffff
call fcn.0047b130
add esp, 0xc
jmp 0x47ec40
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0047b130
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.0047baf0
mov ebp, dword [esp + 0x18]
cmp edi, ebp
mov esi, dword [esp + 0x14]
jge 0x47ebdd
nop
movzx ecx, word [esi + edi*2 + 2]
lea eax, [esi + edi*2 + 2]
cmp cx, 0x5c
je 0x47eba2
nop
test cx, cx
je 0x47ebaa
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x47eb90
sub eax, esi
sar eax, 1
mov edi, eax
jns 0x47ebac
mov edi, ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.0047c6e0
mov eax, dword [eax]
push eax
call fcn.0047dec0
mov ecx, dword [esp + 0x30]
test al, al
push ecx
sete bl
call fcn.0047b130
add esp, 8
test bl, bl
jne 0x47ec1d
cmp edi, ebp
jl 0x47eb80
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x7c], 0
call fcn.0047b130
push esi
mov dword [esp + 0x80], 0xffffffff
call fcn.0047b130
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x47ec22
mov edx, dword [esp + 0x20]
push edx
mov byte [esp + 0x7c], 0
call fcn.0047b130
push esi
mov dword [esp + 0x80], 0xffffffff
call fcn.0047b130
add esp, 8
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret