Function at 0x47f3e2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f43b9
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
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 [0x55a320]
mov esi, 0x55a320
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x150], 1
mov eax, dword [0x55a320]
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 0x47f593
cmp dword [edi + 0xc], ebx
je 0x47f593
cmp dword [edi + 8], ebx
je 0x47f593
push 0x50c07c
call fcn.004be5ac
push 0xfde9
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0x4c], ecx
call fcn.004062ed
mov byte [esp + 0x150], 3
push dword [esp + 0x40]
lea eax, [esp + 0x38]
push eax
call fcn.00402d02
lea eax, [esp + 0x44]
mov byte [esp + 0x150], 2
cmp dword [esp + 0x40], eax
je 0x47f4d4
push dword [esp + 0x40]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [edi + 0x10]
call fcn.004be418
mov ebx, eax
test ebx, ebx
je 0x47f591
cmp dword [ebx + 0x38], 0x10
jb 0x47f4f1
mov eax, dword [ebx + 0x24]
jmp 0x47f4f4
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.004062ed
mov byte [esp + 0x150], 4
push dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
call fcn.00402cc5
lea eax, [esp + 0x44]
mov byte [esp + 0x150], 6
cmp dword [esp + 0x40], eax
je 0x47f53f
push dword [esp + 0x40]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0046d6a5
test eax, eax
je 0x47f571
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 0x47f571
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x28]
call fcn.0047a7fe
mov byte [esp + 0x150], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, ebx
call fcn.004be471
jmp 0x47f4dc
xor ebx, ebx
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
jbe 0x47f5ab
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 0x47f5cb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x3c], esi
lea edi, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00487b26
test al, al
je 0x47f613
call fcn.00482f58
mov esi, dword [eax]
cmp esi, ebx
je 0x47f608
cmp dword [esp + 0x14], ebx
je 0x47f600
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x47f600
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea esi, [esp + 0x18]
call fcn.0041e4d6
jmp 0x47f5bb
lea ebx, [esp + 0x24]
call fcn.0047f75a
mov ebx, dword [esp + 0x34]
cmp dword [ebx - 0xc], 0
je 0x47f671
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0x50e2b4
call fcn.00401a17
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.0047f7b5
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00402a4c
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.0040ae49
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