Function at 0x47ce80
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 0x47d050
mov edi, dword [esp + 0x38]
add edi, 0x25
je 0x47cede
add edi, 0xffffffdb
jmp 0x47cee0
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov esi, eax
test esi, esi
je 0x47cf0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.listwnd
mov ecx, esi
call edx
test eax, eax
je 0x47cf0e
mov edi, dword [esi + 0xb4]
mov dword [esp + 0x3c], edi
jmp 0x47cf1a
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x3c]
mov ebp, 1
cmp edi, ebp
jle 0x47d050
jmp 0x47cf30
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 0x47cfa8
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47cf93
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47cf93
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47cf8a
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 0x47cfa0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00410570
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
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 0x47cfcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx - 0xc], 0
jl 0x47cfef
push 0x5990cc
push ebx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x47cfef
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x47cffc
add ebp, 1
cmp ebp, edi
jl 0x47cf30
jmp 0x47d050
test ebp, ebp
je 0x47d050
cmp ebp, edi
jge 0x47d050
sub edi, ebp
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x38]
add edi, 0x25
je 0x47d018
add edi, 0xffffffdb
jmp 0x47d01a
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov ebx, eax
test ebx, ebx
je 0x47d045
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push str.listwnd
mov ecx, ebx
call eax
test eax, eax
je 0x47d045
push 1
mov edx, ebp
call fcn.00470d80
sub dword [esp + 0x3c], 1
jne 0x47d00a
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov edi, dword [ebp + 0x800]
add ebp, 0x7f8
cmp dword [ebp + 4], edi
jbe 0x47d06b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x47d079
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, 1
push eax
mov eax, esi
call fcn.00485850
mov esi, eax
mov eax, dword [ebp + 4]
add esp, 4
test eax, eax
jne 0x47d096
xor ecx, ecx
jmp 0x47d0ac
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
mov edi, dword [esp + 0x38]
push 3
push esi
mov edx, edi
call fcn.0047ab80
cmp dword [edi + 0x380], 0
je 0x47d1f4
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x47d0d5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x47d0e7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, ebp
je 0x47d0f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x47d1f4
cmp eax, dword [ebp + 8]
jb 0x47d108
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0047afc0
mov esi, dword [esp + 0x24]
cmp esi, dword [ebp + 8]
mov ebx, eax
jb 0x47d125
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi + 0x30], 0
je 0x47d140
cmp esi, dword [ebp + 8]
jb 0x47d136
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi + 0x32], 0
je 0x47d1cc
mov eax, dword [esp + 0x38]
add eax, 0x25
je 0x47d14e
lea edi, [eax - 0x25]
jmp 0x47d150
xor edi, edi
mov esi, 0x348
call fcn.004507b0
mov edi, eax
test edi, edi
je 0x47d1c8
mov edx, dword [edi]
mov eax, dword [edx + 4]
push str.listwnd
mov ecx, edi
call eax
test eax, eax
je 0x47d1c8
test ebx, ebx
jl 0x47d1c8
cmp ebx, dword [edi + 0xb4]
jge 0x47d1c8
jae 0x47d1ea
mov eax, dword [edi + 0xac]
test eax, eax
je 0x47d1ea
test ebx, ebx
jbe 0x47d197
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x47d190
test eax, eax
je 0x47d1ea
mov eax, dword [eax + 8]
test eax, eax
je 0x47d1c8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x50]
push 0x6b
call eax
mov esi, eax
test esi, esi
je 0x47d1c8
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
mov esi, dword [esp + 0x24]
cmp esi, dword [ebp + 8]
jb 0x47d1d7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
add esi, 0xd0
jmp 0x47d0d5
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 0x47d218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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