Function at 0x47c620
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f58e1
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1b0]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x68], edx
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 0xc]
xor ebp, ebp
mov ebx, vtable.t_fileBufferWrite.1.0
push 0x10000
mov dword [esp + 0x54], 0x554401d3
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 8
mov dword [esp + 0x1c], vtable.t_fileBufferWrite.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], 0x10000
call fcn.004d1df2
add esp, 4
mov dword [esp + 0x20], eax
push 0x2c
lea ecx, [esp + 0x54]
push ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1b4], ebp
call fcn.0046dd50
test al, al
jne 0x47c72b
mov ecx, edi
call fcn.0040fa50
push 0x532434
push 0x52a3bc
mov edx, eax
call fcn.004114a0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x18], vtable.t_fileBufferWrite.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x47c724
push eax
call fcn.004d1d15
add esp, 4
xor al, al
jmp 0x47ca05
push 4
lea edx, [esp + 0x34]
push edx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
call fcn.0046dd50
test al, al
jne 0x47c76f
mov ecx, edi
call fcn.0040fa50
push 0x532454
push 0x52a3bc
mov edx, eax
call fcn.004114a0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.0046dd10
xor al, al
jmp 0x47ca05
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
add esi, eax
mov dword [esp + 0x40], esi
mov esi, dword [eax + 8]
add esi, eax
mov dword [esp + 0x44], esi
mov esi, dword [eax + 0xc]
mov edx, eax
mov edx, dword [edx + 0x10]
add esi, eax
add ecx, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], ebp
cmp edx, ebp
jbe 0x47c904
lea ebx, [ecx + 8]
nop
cmp dword [ebx], ebp
je 0x47c8e3
push 4
push ebx
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c996
mov esi, dword [ebx - 8]
add esi, dword [esp + 0x44]
push 2
push esi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], esi
call fcn.0046dd50
test al, al
je 0x47c996
movsx ecx, word [esi]
push ecx
lea eax, [esi + 2]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c996
mov eax, dword [ebx - 4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x40]
lea eax, [eax + edx*4]
mov dword [esp + 0x38], ebp
cmp dword [ebx], ebp
jbe 0x47c8d4
lea ebp, [eax + 6]
mov esi, dword [ebp - 6]
add esi, dword [esp + 0x48]
push 2
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c996
movzx eax, word [esi]
mov edx, 0x80
lea ecx, [esi + 2]
cmp ax, dx
ja 0x47c9c0
test ax, ax
jle 0x47c9c0
cwde
push eax
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c9a7
push 2
lea ecx, [ebp - 2]
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c9a7
push 2
push ebp
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c9a7
push 4
lea edx, [ebp + 2]
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.0046dd50
test al, al
je 0x47c9a7
mov eax, dword [esp + 0x38]
inc dword [esp + 0x3c]
inc eax
add ebp, 0xc
mov dword [esp + 0x38], eax
cmp eax, dword [ebx]
jb 0x47c823
mov esi, dword [esp + 0x4c]
xor ebp, ebp
movsx eax, word [esi]
mov ecx, dword [esp + 0x34]
lea edx, [ecx + eax + 2]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [edx + 4]
inc ecx
add ebx, 0xc
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + 0x10]
jb 0x47c7b0
lea ecx, [esp + 0x7c]
call fcn.00410c10
mov eax, dword [esp + 0x1b4]
lea edx, [esp + 0x7c]
call fcn.00410e40
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x1ac], 2
call fcn.0046de40
test al, al
mov byte [esp + 0x1a8], 0
sete bl
cmp byte [esp + 0x198], 0
mov dword [esp + 0x7c], vtable.t_str.0
jne 0x47c96d
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x47c96d
push eax
call fcn.004d1d15
add esp, 4
mov ecx, edi
test bl, bl
je 0x47c9d1
call fcn.0040fa50
push 0x5324b0
push 0x52a3bc
mov edx, eax
call fcn.004114a0
mov dword [esp + 0x24], vtable.t_fileBufferWrite.1.0
jmp 0x47c6fc
mov ecx, edi
call fcn.0040fa50
push 0x532474
jmp 0x47c750
push 0x532474
mov ecx, edi
call fcn.00401490
lea ecx, [esp + 0x18]
call fcn.0046dd10
xor al, al
jmp 0x47ca05
mov ecx, edi
call fcn.0040fa50
push 0x532490
jmp 0x47c750
call fcn.0040faa0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], vtable.t_fileBufferWrite.0
mov dword [esp + 0x1c], vtable.t_fileBufferWrite.1.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x47ca03
push eax
call fcn.004d1d15
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 8