Function at 0x40c910
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x55154c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40c93c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1cb3c], 2
je 0x40c92b
cmp dword [esi + 0x1804], 0
je 0x40c96a
push str.dfxg_CreateSkinNameList:_Entered
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
cmp dword [esi + 0x5b48], 0
je 0x40ca14
cmp dword [esi + 0x1804], 0
je 0x40c9c1
push str.dfxg_CreateSkinNameList:_cast_handle__skin_info.wcpp_skin_name_list_is_NULL
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
cmp dword [esi + 0x1804], 0
je 0x40c9c1
push str.dfxg_CreateSkinNameList:_Calling_dfxg_FreeUpSkinList
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push esi
call fcn.0040cd80
add esp, 4
test eax, eax
je 0x40c9ef
push str.1916
push str.dfxgdfxgSkin.cpp
call fcn.004688c0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1804], 0
je 0x40ca14
push str.dfxg_CreateSkinNameList:_Successful_call_to_dfxg_FreeUpSkinList
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push str.Skins
lea eax, [esi + 0x18ad8]
mov dword [esi + 0x5b48], 0
push eax
lea eax, [ebp - 0xc04]
mov dword [esi + 0x5b4c], 0
push 0x51a048
push eax
call fcn.00401820
add esp, 0x10
cmp dword [esi + 0x1804], 0
je 0x40ca74
lea eax, [ebp - 0xc04]
push eax
push str.dfxg_CreateSkinNameList:_Search_Path____s_
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 0xc
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push ebx
push edi
lea eax, [ebp - 0xe54]
push eax
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, 1
cmp edi, 0xffffffff
je 0x40cb48
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40cb48
test byte [ebp - 0xe54], 0x10
je 0x40cb16
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0x404]
push 0x51568c
push eax
call fcn.00401820
add esp, 0xc
cmp word [ebp - 0x404], 0x2e
je 0x40cb16
cmp dword [esi + 0x1804], 0
je 0x40cb02
lea eax, [ebp - 0x404]
push eax
push str.dfxg_CreateSkinNameList:_Calling_dfxg_AppendNameToSkinList__s_
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 0xc
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.0040c6f0
add esp, 8
test eax, eax
jne 0x40cb25
lea eax, [ebp - 0xe54]
push eax
push edi
call ebx
jmp 0x40caa0
push str.1958
push str.dfxgdfxgSkin.cpp
call fcn.004688c0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1804], 0
je 0x40cb6d
push str.dfxg_CreateSkinNameList:_Calling_dfxg_AlphabetizeSkinList
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push esi
call fcn.0040c5c0
add esp, 4
test eax, eax
je 0x40cb9d
push str.1974
push str.dfxgdfxgSkin.cpp
call fcn.004688c0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x1804], 0
je 0x40cbc9
push str.dfxg_CreateSkinNameList:_Finished
push esi
call fcn.00401820
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004e19a5
mov esp, ebp
pop ebp
ret