Function at 0x47a1a7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed6e7
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x150], ebx
mov eax, dword [0x550310]
mov esi, 0x550310
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x150], 1
mov eax, dword [0x550310]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x150], 2
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x47a358
cmp dword [edi + 0xc], ebx
je 0x47a358
cmp dword [edi + 8], ebx
je 0x47a358
push 0x503f6c
call fcn.004b8131
push 0xfde9
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0x4c], ecx
call fcn.00405fd8
mov byte [esp + 0x150], 3
push dword [esp + 0x40]
lea eax, [esp + 0x38]
push eax
call fcn.00402d46
lea eax, [esp + 0x44]
mov byte [esp + 0x150], 2
cmp dword [esp + 0x40], eax
je 0x47a299
push dword [esp + 0x40]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [edi + 0x10]
call fcn.004b7f9d
mov ebx, eax
test ebx, ebx
je 0x47a356
cmp dword [ebx + 0x38], 0x10
jb 0x47a2b6
mov eax, dword [ebx + 0x24]
jmp 0x47a2b9
lea eax, [ebx + 0x24]
push 0xfde9
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0x4c], ecx
call fcn.00405fd8
mov byte [esp + 0x150], 4
push dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
call fcn.00402d09
lea eax, [esp + 0x44]
mov byte [esp + 0x150], 6
cmp dword [esp + 0x40], eax
je 0x47a304
push dword [esp + 0x40]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0046993e
test eax, eax
je 0x47a336
push dword [edi + 8]
mov edx, dword [eax]
push dword [edi + 0xc]
mov ecx, eax
push ebx
call dword [edx + 4]
test eax, eax
mov dword [esp + 0x18], eax
je 0x47a336
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x28]
call fcn.00475a1a
mov byte [esp + 0x150], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, ebx
call fcn.004b7ff6
jmp 0x47a2a1
xor ebx, ebx
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
jbe 0x47a370
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], esi
jbe 0x47a390
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x3c], esi
lea edi, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.0041e192
test al, al
je 0x47a3d8
call fcn.00490068
mov esi, dword [eax]
cmp esi, ebx
je 0x47a3cd
cmp dword [esp + 0x14], ebx
je 0x47a3c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x47a3c5
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea esi, [esp + 0x18]
call fcn.00475a95
jmp 0x47a380
lea ebx, [esp + 0x24]
call fcn.0047a51f
mov ebx, dword [esp + 0x34]
cmp dword [ebx - 0xc], 0
je 0x47a436
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0x5061a4
call fcn.00401a57
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.00401311
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov byte [esp + 0x158], 7
call fcn.0047a57a
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00402a90
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebx - 0x10]
call fcn.004012f9
lea esi, [esp + 0x24]
call fcn.0047d914
xor eax, eax
inc eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4