Function at 0x47c6a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x47c6ad
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0x14]
xor eax, eax
push ebp
push 0x47cc95
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [0x4615f8]
call fcn.00405518
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x1c]
call fcn.0046bdc8
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x1c]
call fcn.0046bd84
mov eax, dword [ebx + 0x1c]
call fcn.0046bda4
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x30]
call fcn.0040d8f8
lea ecx, [ebp - 0x20]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x47122c]
call fcn.00403384
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x30], 0
jne 0x47c80b
lea edx, [ebp - 0x24]
mov eax, dword [0x48be80]
call fcn.00406094
mov eax, dword [ebp - 0x24]
mov edx, 3
call fcn.0046badc
jmp 0x47c80b
mov eax, dword [ebx + 0x18]
call fcn.0046af88
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x18]
call fcn.0046aeb4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
call fcn.0046add0
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, dword [ebx + 0x18]
call fcn.0046add0
mov edi, dword [ebx + 0x18]
mov eax, edi
call fcn.0046acd4
push eax
mov edx, dword [edi + 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.0040525c
mov edi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
add edi, eax
push edi
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov edx, dword [0x4615f8]
call fcn.00405418
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.0040525c
mov edi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
sub edi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, edi
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
mov ecx, eax
mov eax, dword [ebp - 0x18]
pop edx
call fcn.004028f4
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 8]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.0040525c
cmp edi, eax
jg 0x47c75f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [ebx + 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x38]
call fcn.0040d8f8
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 5
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x46c0b8]
call fcn.00403384
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x38], 0
jne 0x47c89b
lea edx, [ebp - 0x2c]
mov eax, dword [0x48c190]
call fcn.00406094
mov eax, dword [ebp - 0x2c]
mov edx, 3
call fcn.0046badc
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.0047b220
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov ecx, dword [0x4615f8]
call fcn.00405554
mov edi, dword [ebx + 0x38]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov edx, dword [ebp + 8]
mov edx, dword [edx]
xor ecx, ecx
mov eax, edi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
lea eax, [ebx + 0x2c]
mov ecx, 1
mov edx, dword [0x4615f8]
call fcn.00405418
add esp, 4
lea eax, [ebx + 0x34]
call fcn.0040d8f8
lea ecx, [ebp - 0x34]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 2
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x47122c]
call fcn.00403384
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x34], 0
jne 0x47ca08
lea edx, [ebp - 0x38]
mov eax, dword [0x48be80]
call fcn.00406094
mov eax, dword [ebp - 0x38]
mov edx, 3
call fcn.0046badc
jmp 0x47ca08
mov eax, dword [ebx + 0x18]
call fcn.0046af88
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x18]
call fcn.0046aeb4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
call fcn.0046add0
mov edx, dword [esi]
mov eax, dword [ebx + 0x18]
call fcn.0046add0
mov edi, dword [ebx + 0x18]
mov eax, edi
call fcn.0046acd4
push eax
mov edx, dword [edi + 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [esi]
call fcn.0040525c
mov edi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
add edi, eax
push edi
mov eax, esi
mov ecx, 1
mov edx, dword [0x4615f8]
call fcn.00405418
add esp, 4
mov eax, dword [esi]
call fcn.0040525c
mov edi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
sub edi, eax
mov eax, dword [esi]
add eax, edi
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040525c
mov ecx, eax
mov eax, dword [ebp - 0x18]
pop edx
call fcn.004028f4
mov eax, dword [ebx + 0x34]
mov edx, dword [eax]
call dword [edx + 8]
mov edi, eax
mov eax, dword [esi]
call fcn.0040525c
cmp edi, eax
jg 0x47c969
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [ebx + 0x34]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebx + 0x3c]
call fcn.0040d8f8
lea ecx, [ebp - 0x3c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x46c0b8]
call fcn.00403384
mov esi, eax
mov dword [ebx + 0x3c], esi
test esi, esi
jne 0x47ca87
lea edx, [ebp - 0x40]
mov eax, dword [0x48c190]
call fcn.00406094
mov eax, dword [ebp - 0x40]
mov edx, 3
call fcn.0046badc
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.0047b220
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4615f8]
call fcn.00405554
mov esi, dword [ebx + 0x3c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 4]
lea ecx, [ebp - 0x48]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 6
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x48]
mov edx, 0x47ccb0
call fcn.00404330
je 0x47cb73
lea ecx, [ebp - 0x4c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 6
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi]
cmp dword [ebp - 0x1c], 0
je 0x47cb7b
lea eax, [ebx + 0x40]
call fcn.0040d8f8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x47adc4]
call fcn.00403384
mov esi, eax
mov dword [ebx + 0x40], esi
test esi, esi
jne 0x47cb62
lea edx, [ebp - 0x50]
mov eax, dword [0x48bec8]
call fcn.00406094
mov eax, dword [ebp - 0x50]
mov edx, 3
call fcn.0046badc
mov ecx, 6
mov dl, 1
mov eax, dword [ebx + 0x40]
mov esi, dword [eax]
call dword [esi + 4]
jmp 0x47cb7b
lea eax, [ebx + 0x40]
call fcn.0040d8f8
lea ecx, [ebp - 0x54]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 7
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x54]
mov edx, 0x47ccb0
call fcn.00404330
je 0x47cc12
lea ecx, [ebp - 0x58]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
mov edx, 7
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi]
cmp dword [ebp - 0x1c], 0
je 0x47cc1a
lea eax, [ebx + 0x44]
call fcn.0040d8f8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [0x47adc4]
call fcn.00403384
mov esi, eax
mov dword [ebx + 0x44], esi
test esi, esi
jne 0x47cc04
lea edx, [ebp - 0x5c]
mov eax, dword [0x48bec8]
call fcn.00406094
mov eax, dword [ebp - 0x5c]
mov edx, 3
call fcn.0046badc
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x44]
mov esi, dword [eax]
call dword [esi + 4]
jmp 0x47cc1a
lea eax, [ebx + 0x44]
call fcn.0040d8f8
mov dl, 1
mov eax, ebx
call fcn.0047c40c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cc9c
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.00403f48
lea eax, [ebp - 0x44]
mov edx, dword [0x4615f8]
call fcn.00405518
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00403f48
lea eax, [ebp - 0x30]
mov edx, dword [0x4615f8]
call fcn.00405518
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00403f48
lea eax, [ebp - 0x18]
mov edx, dword [0x4615f8]
call fcn.00405518
lea eax, [ebp - 0x10]
mov edx, dword [0x4615f8]
mov ecx, 2
call fcn.00404a58
ret