Function at 0x47de10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x11]
mov edi, dword fs:[0x18]
sub esp, 0x38
movzx eax, byte [0x5a0b64]
mov esi, dword [str.xxxxx]
mov dword [edi + 0x34], 0xdeadbeef
mov byte [ebp - 0xd], al
mov eax, dword [sym.imp.kernel32.dll_FormatMessageA]
mov dword [ebp - 0x11], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59f5c3
mov dword [esp], 0x400
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x1c]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x40d
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FormatMessageA_to_return_0__got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x40e
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Expected_GetLastError___to_return_ERROR_INSUFFICIENT_BUFFER__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x411
cmp dword [ebp - 0x11], 0x78787878
je 0x47e639
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.Expected_the_buffer_to_be_untouched_n
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0047c620
movzx eax, byte [0x5a0b64]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0x11], esi
mov byte [ebp - 0xd], al
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59f5c3
mov dword [esp], 0x400
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x1c]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x417
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FormatMessageA_to_return_0__got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x418
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Expected_GetLastError___to_return_ERROR_INSUFFICIENT_BUFFER__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x41b
cmp dword [ebp - 0x11], 0x78787878
je 0x47e65b
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.Expected_the_buffer_to_be_untouched_n
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0047c620
movzx eax, byte [0x5a0b64]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0x11], esi
mov byte [ebp - 0xd], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59f5c3
mov dword [esp], 0x400
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x421
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FormatMessageA_to_return_0__got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x422
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Expected_GetLastError___to_return_ERROR_INSUFFICIENT_BUFFER__got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x425
cmp dword [ebp - 0x11], 0x78787878
je 0x47e64a
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.Expected_the_buffer_to_be_untouched_n
mov edi, 0x7fbc
mov dword [esp], eax
call fcn.0047c620
mov dword [ebp - 0x1c], 0x7fbb
mov eax, dword fs:[0x18]
mov dword [ebp - 0x28], eax
nop
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov ebx, 0x4ec4ec4f
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov dword [ebp - 0x24], eax
nop
mov eax, ecx
mul ebx
mov eax, ecx
shr edx, 3
imul edx, edx, 0x1a
sub eax, edx
add eax, 0x41
mov byte [esi + ecx], al
add ecx, 1
cmp ecx, edi
jne 0x47e160
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov ebx, dword fs:[0x18]
mov byte [esi + eax], 0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x400
mov ecx, dword [ebp - 0x20]
call ecx
mov dword [ebp - 0x24], eax
sub esp, 0x1c
cmp edi, 0x7fff
ja 0x47e410
call fcn.0057d110
mov dword [eax], 0x59f177
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], 0x433
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str._lu:_got__lu_n
cmp dword [ebp - 0x1c], edx
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x434
mov eax, dword [ebp - 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 4], str.wrong_buffer_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0047c620
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59f5d6
mov dword [esp], 0x400
call fcn.0047bc30
mov dword [ebp - 0x24], eax
call fcn.0057d110
mov edx, dword [ebp - 0x24]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x440
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str._lu:_got__lu_n
cmp dword [ebp - 0x1c], edx
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x441
mov eax, dword [ebp - 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 4], str.wrong_buffer_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0047c620
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
lea edx, [ebp - 0x18]
mov dword [ebx + 0x34], 0xdeadbeef
sub esp, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x500
mov ecx, dword [ebp - 0x20]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x24], eax
call fcn.0057d110
mov edx, dword [ebp - 0x24]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x450
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str._lu:_got__lu_n
cmp dword [ebp - 0x1c], edx
sete al
mov dword [esp], eax
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x451
mov eax, dword [ebp - 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 4], str.wrong_buffer_n
test eax, eax
sete al
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.0047c620
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
add dword [ebp - 0x1c], 1
sub esp, 0xc
jmp 0x47e110
call fcn.0057d110
mov dword [eax], 0x59f177
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], 0x438
xor eax, eax
test edx, edx
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str._lu:_got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x439
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x59f5d9
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0047c620
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59f5d6
mov dword [esp], 0x400
call fcn.0047bc30
mov dword [ebp - 0x24], eax
call fcn.0057d110
mov edx, dword [ebp - 0x24]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x445
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._lu:_got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x446
mov edx, dword [ebx + 0x34]
mov eax, 1
cmp edx, 0x57
je 0x47e51e
mov ebx, dword [0x8f0770]
cmp edx, 0xea
sete cl
xor eax, eax
test ebx, ebx
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x59f5d9
mov ebx, dword fs:[0x18]
call fcn.0047c620
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
lea eax, [ebp - 0x18]
mov dword [ebx + 0x34], 0xdeadbeef
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x500
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x1c
mov dword [ebp - 0x24], eax
call fcn.0057d110
mov edx, dword [ebp - 0x24]
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x456
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str._lu:_got__lu_n
call fcn.0047c620
call fcn.0057d110
mov dword [eax], 0x59f177
mov dword [eax + 4], 0x457
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x59f5d9
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
add edi, 1
mov dword [esp], eax
call fcn.0047c620
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
add dword [ebp - 0x1c], 1
sub esp, 0xc
cmp edi, 0x8020
jne 0x47e110
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp byte [ebp - 0xd], 0x78
jne 0x47df01
jmp 0x47df06
xor eax, eax
cmp byte [ebp - 0xd], 0x78
jne 0x47e0e1
jmp 0x47e0e6
xor eax, eax
cmp byte [ebp - 0xd], 0x78
jne 0x47dff3
jmp 0x47dff8