Function at 0x420390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4734a1
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x48a2c4]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov esi, dword [esp + 0x498]
xor edi, edi
push 0x24c
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], edi
call fcn.004471a0
mov eax, dword [0x488014]
mov ebp, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x49c], edi
mov dword [esp + 0x24], eax
mov ebx, eax
mov dword [esp + 0x28], ebx
push 0x206
lea edx, [esp + 0x28e]
xor ecx, ecx
push edi
push edx
mov byte [esp + 0x4a8], 2
mov word [esp + 0x294], cx
call fcn.004471a0
push 0x104
lea eax, [esp + 0x298]
push eax
push str.config
push esi
call fcn.0041ca40
add esp, 0x28
lea ecx, [esp + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00413030
test eax, eax
je 0x420493
mov ebp, dword [esp + 0x18]
lea edi, [esi + esi]
lea edx, [edi + 2]
cmp edx, edi
jb 0x420486
push edi
lea eax, [esp + 0x280]
push eax
push ebp
call fcn.004482d0
add esp, 0xc
mov dword [ebp - 8], esi
xor ecx, ecx
mov word [edi + ebp], cx
mov ebp, dword [esp + 0x14]
push 0x47834c
push 0x47834c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x20]
call fcn.00412590
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
je 0x4206d9
test byte [esp + 0x2c], 0x10
je 0x4206be
mov ecx, 0x478348
lea eax, [esp + 0x58]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420506
test dx, dx
je 0x420502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4204e0
xor eax, eax
jmp 0x42050b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4206be
mov ecx, 0x478340
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420546
test dx, dx
je 0x420542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420546
add eax, 4
add ecx, 4
test dx, dx
jne 0x420520
xor eax, eax
jmp 0x42054b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4206be
push str.config_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0xc], 1
lea esi, [ebp - 0xc]
mov edi, eax
jg 0x42056e
cmp edi, dword [ebp - 4]
jle 0x4205a9
add ebp, 0xfffffff4
cmp ebp, dword [0x488010]
je 0x420597
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42058d
push esi
call fcn.00448106
add esp, 4
mov ecx, dword [0x488014]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00412460
test eax, eax
je 0x4205cb
mov ebp, dword [esp + 0x14]
lea esi, [edi + edi]
lea edx, [esi + 2]
cmp edx, esi
jb 0x4205c2
push esi
push str.config_
push ebp
call fcn.004482d0
add esp, 0xc
xor eax, eax
mov dword [ebp - 8], edi
mov word [esi + ebp], ax
lea ecx, [esp + 0x58]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x1c]
call fcn.00412590
mov ebp, dword [esp + 0x14]
cmp ebx, ebp
je 0x420666
cmp dword [ebx - 0xc], 0
mov eax, dword [0x488010]
lea edi, [ebx - 0xc]
jge 0x420600
lea ecx, [ebx - 0xc]
cmp ecx, eax
jne 0x420609
cmp dword [ebp - 0xc], 0
lea esi, [ebp - 0xc]
jge 0x42063e
mov edi, dword [ebp - 8]
push edi
lea ecx, [esp + 0x20]
call fcn.00413030
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x420666
lea esi, [edi + edi]
lea edx, [esi + 2]
cmp edx, esi
jb 0x420633
push esi
push ebp
push ebx
call fcn.004482d0
add esp, 0xc
xor eax, eax
mov dword [ebx - 8], edi
mov word [esi + ebx], ax
jmp 0x420666
add ebx, 0xfffffff4
cmp ebx, eax
je 0x420659
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420659
push edi
call fcn.00448106
add esp, 4
mov ebx, ebp
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push str._skin.png
push str._skin.png
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x1c]
call fcn.00412590
cmp dword [ebx - 0xc], 0
push ecx
lea eax, [ebx - 0xc]
mov dword [esp + 0x2c], esp
mov ecx, esp
jl 0x42069b
push eax
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4206a9
mov edx, dword [0x488014]
push ebx
mov dword [ecx], edx
call fcn.00414ae0
mov eax, dword [esp + 0x24]
push eax
call fcn.0041f160
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4204cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [ebx - 0xc]
cmp edx, dword [0x488010]
je 0x4206fd
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x4206fd
push esi
call fcn.00448106
add esp, 4
mov esi, dword [esp + 0x18]
lea eax, [esi - 0xc]
cmp eax, dword [0x488010]
je 0x42071f
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42071f
push esi
call fcn.00448106
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x488010]
je 0x42073d
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x42073d
push esi
call fcn.00448106
add esp, 4
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00447157
add esp, 0x480
ret