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

Disassembly:
push 0xffffffffffffffff
push 0x4ed248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.00456e50
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x72]
test al, al
mov edi, 1
jne 0x47f2be
mov dword [esp + 0x10], edi
cmp byte [esp + 0x73], 1
jne 0x47f2c9
mov dword [esp + 0x1c], edi
mov al, byte [esp + 0x74]
test al, al
je 0x47f2da
movzx ax, al
mov word [esp + 0x14], ax
movzx cx, byte [esp + 0x71]
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov word [esp + 0x3c], cx
mov dword [esp + 0x38], edi
mov edx, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [edx + ecx]
mov dl, byte [edx + ecx]
mov al, byte [eax + 1]
mov byte [esp + 0x80], al
mov byte [esp + 0x70], dl
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
push ecx
push edx
mov ecx, esi
call fcn.00481260
mov ebp, dword [ebx]
and eax, 0xffff
add ebp, 6
cmp eax, edi
mov dword [ebx], ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
jle 0x47f546
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebx]
mov edx, dword [ecx + 4]
mov cl, byte [eax + edx]
add eax, edx
mov byte [esp + 0x70], cl
mov dl, byte [eax + 1]
mov cl, byte [eax + 2]
mov byte [esp + 0x80], dl
mov dl, byte [eax + 3]
mov eax, dword [esp + 0x80]
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x8c], dl
call fcn.00481260
mov edx, dword [esp + 0x84]
mov ecx, esi
movsx edi, ax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00481260
mov ecx, dword [ebx]
mov dword [esp + 0x30], edi
movsx eax, ax
add ecx, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [ebx], ecx
mov ecx, 1
cmp eax, ecx
jne 0x47f47f
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x7c]
test eax, eax
mov eax, dword [edi]
jne 0x47f424
test eax, eax
je 0x47f3fe
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47f3e6
mov ecx, dword [esp + 0x40]
or ch, 2
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, esi
call fcn.0047f830
mov dword [edi], 0
mov ecx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47f40a
or dword [esp + 0x40], ecx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.0047fab0
sub esp, 0x30
mov dword [esp + 0x58], esp
jmp 0x47f494
test eax, eax
je 0x47f459
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + 4]
test eax, eax
je 0x47f43f
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
or dh, 2
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
add eax, 8
push eax
push ecx
mov ecx, esi
call fcn.0047f830
mov dword [edi], 0
mov ecx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47f467
mov eax, dword [ebp + 8]
or dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
add ecx, 8
push ecx
push edx
mov ecx, esi
call fcn.0047fab0
jmp 0x47f51e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47f48d
mov eax, dword [ebp + 8]
or dword [eax + 0x1c], ecx
sub esp, 0x30
mov dword [esp + 0x58], esp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x60]
neg ecx
sbb ecx, ecx
mov eax, esp
and ecx, edx
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x6c]
mov word [eax + 0x10], cx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x14], edx
mov cx, word [esp + 0x74]
mov word [eax + 0x18], cx
mov dx, word [esp + 0x76]
mov word [eax + 0x1a], dx
mov cx, word [esp + 0x78]
mov word [eax + 0x1c], cx
mov dx, word [esp + 0x7a]
mov word [eax + 0x1e], dx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x80]
mov dword [eax + 0x24], edx
mov cx, word [esp + 0x84]
mov word [eax + 0x28], cx
mov edx, dword [esp + 0x88]
mov dword [eax + 0x2c], edx
mov ecx, ebp
mov dword [eax], 0x4f5588
call fcn.0042f1b0
xor eax, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00456f80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47f344
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47f559
mov ebp, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
or al, 0x20
mov dword [ebp + 0x1c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00456e80
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x1c