Function at 0x47c090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57a9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
je 0x47c263
mov edi, dword [esp + 0x38]
add edi, 0x25
je 0x47c0ee
add edi, 0xffffffdb
jmp 0x47c0f0
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov esi, eax
test esi, esi
je 0x47c11e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.listwnd
mov ecx, esi
call edx
test eax, eax
je 0x47c11e
mov edi, dword [esi + 0xb4]
mov dword [esp + 0x3c], edi
jmp 0x47c12a
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x3c]
mov ebp, 1
cmp edi, ebp
jle 0x47c263
jmp 0x47c140
push 0x3c0
push ebp
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
add eax, 0x25
push eax
mov ecx, 0x348
call fcn.00482160
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x47c1b8
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47c1a3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47c1a3
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47c19a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x47c1b0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00410570
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c1dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx - 0xc], 0
jl 0x47c1ff
push str._rTUS
push ebx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x47c1ff
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x47c20c
add ebp, 1
cmp ebp, edi
jl 0x47c140
jmp 0x47c263
test ebp, ebp
je 0x47c263
cmp ebp, edi
jg 0x47c263
sub edi, ebp
add edi, 1
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x38]
add edi, 0x25
je 0x47c22b
add edi, 0xffffffdb
jmp 0x47c22d
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov ebx, eax
test ebx, ebx
je 0x47c258
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push str.listwnd
mov ecx, ebx
call eax
test eax, eax
je 0x47c258
push 0
mov edx, ebp
call fcn.00470d80
sub dword [esp + 0x3c], 1
jne 0x47c21d
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0x7cc]
test eax, eax
lea ebp, [edi + 0x7c8]
mov dword [esp + 0x3c], ebp
jne 0x47c27f
xor ecx, ecx
jmp 0x47c295
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 4
push 0
mov edx, edi
call fcn.0047ab80
cmp dword [edi + 0x384], 0
je 0x47c3d5
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x47c2bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x24], esi
nop
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x47c2ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, ebp
je 0x47c2d8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x47c3d5
cmp eax, dword [ebp + 8]
jb 0x47c2ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.0047c420
mov ebp, dword [esp + 0x38]
add ebp, 0x25
mov ebx, eax
je 0x47c30a
lea edi, [ebp - 0x25]
jmp 0x47c30c
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov edi, eax
test edi, edi
je 0x47c38c
mov edx, dword [edi]
mov eax, dword [edx + 4]
push str.listwnd
mov ecx, edi
call eax
test eax, eax
je 0x47c38c
test ebx, ebx
jl 0x47c38c
cmp ebx, dword [edi + 0xb4]
jge 0x47c38c
jae 0x47c3cb
mov eax, dword [edi + 0xac]
test eax, eax
je 0x47c3cb
test ebx, ebx
jbe 0x47c35b
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x47c354
test eax, eax
je 0x47c3cb
mov eax, dword [eax + 8]
test eax, eax
je 0x47c38c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x50]
push 0x6b
call eax
mov esi, eax
test esi, esi
je 0x47c38c
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 1
push 0x10
mov ecx, esi
call eax
push 1
push edi
call fcn.0044d340
push 0x59202c
push 0x6b
push ebx
push ebp
mov ecx, 0x599410
call fcn.00482390
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
cmp edx, dword [ecx + 8]
jb 0x47c3b2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add dword [esp + 0x24], 0xd0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
jmp 0x47c2c0
push 0x80004005
call fcn.0040fcd0
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c3f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8