Function at 0x40dd20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40dd4c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1dd60], 2
je 0x40dd3b
cmp dword [esi + 0x1804], 0
je 0x40dd7a
push str.dfxg_CreateSkinNameList:_Entered
push esi
call fcn.00401870
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 0x40de24
cmp dword [esi + 0x1804], 0
je 0x40ddd1
push str.dfxg_CreateSkinNameList:_cast_handle__skin_info.wcpp_skin_name_list_is_NULL
push esi
call fcn.00401870
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 0x40ddd1
push str.dfxg_CreateSkinNameList:_Calling_dfxg_FreeUpSkinList
push esi
call fcn.00401870
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push esi
call fcn.0040e190
add esp, 4
test eax, eax
je 0x40ddff
push str.1916
push str.dfxgdfxgSkin.cpp
call fcn.0041afb0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1804], 0
je 0x40de24
push str.dfxg_CreateSkinNameList:_Successful_call_to_dfxg_FreeUpSkinList
push esi
call fcn.00401870
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 + 0x194f4]
mov dword [esi + 0x5b48], 0
push eax
lea eax, [ebp - 0xc04]
mov dword [esi + 0x5b4c], 0
push 0x53f5f0
push eax
call fcn.00401870
add esp, 0x10
cmp dword [esi + 0x1804], 0
je 0x40de84
lea eax, [ebp - 0xc04]
push eax
push str.dfxg_CreateSkinNameList:_Search_Path____s_
push esi
call fcn.00401870
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 0x40df58
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40df58
test byte [ebp - 0xe54], 0x10
je 0x40df26
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0x404]
push 0x53a71c
push eax
call fcn.00401870
add esp, 0xc
cmp word [ebp - 0x404], 0x2e
je 0x40df26
cmp dword [esi + 0x1804], 0
je 0x40df12
lea eax, [ebp - 0x404]
push eax
push str.dfxg_CreateSkinNameList:_Calling_dfxg_AppendNameToSkinList__s_
push esi
call fcn.00401870
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.0040db00
add esp, 8
test eax, eax
jne 0x40df35
lea eax, [ebp - 0xe54]
push eax
push edi
call ebx
jmp 0x40deb0
push str.1958
push str.dfxgdfxgSkin.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1804], 0
je 0x40df7d
push str.dfxg_CreateSkinNameList:_Calling_dfxg_AlphabetizeSkinList
push esi
call fcn.00401870
mov ecx, dword [esi + 0x1000]
add esp, 8
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0x14]
push esi
call fcn.0040d9d0
add esp, 4
test eax, eax
je 0x40dfad
push str.1974
push str.dfxgdfxgSkin.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x1804], 0
je 0x40dfd9
push str.dfxg_CreateSkinNameList:_Finished
push esi
call fcn.00401870
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.004ff105
mov esp, ebp
pop ebp
ret