Function at 0x437bc0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554668
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x280], eax
add eax, 0x1c4
push eax
mov dword [ebp - 0x224], 0
call fcn.00409940
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x254]
call fcn.00409940
cmp dword [ebp - 0x240], 0x10
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov edx, dword [ebp - 0x240]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x219], al
cmp edx, 0x10
jb 0x437c9a
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437c8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43884e
push edx
push ecx
call fcn.005150f8
mov al, byte [ebp - 0x219]
add esp, 8
test al, al
jne 0x437cdc
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x437cd2
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437cc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, 0xffffff91
jmp 0x438813
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
movlpd qword [ebp - 0x25c], xmm0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea eax, [esi + 2]
mov dword [ebp - 0x224], 8
push eax
call fcn.00409fe0
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
push esi
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00409bf0
push 2
push 0x571cc8
lea ecx, [ebp - 0x5c]
call fcn.00409bf0
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov byte [ebp - 4], 1
mov esi, eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x228], esi
cmp edx, 0x10
jb 0x437dae
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437da4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438858
push edx
push ecx
call fcn.005150f8
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp esi, 0xffffffff
jne 0x437e03
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x437df9
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437def
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43885d
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, 0xffffff90
jmp 0x438813
push 0
push 0x56ffce
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.00409ab0
mov byte [ebp - 4], 3
xor edi, edi
test byte [ebp - 0x214], 0x10
mov dword [ebp - 0x22c], edi
je 0x438333
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437e74
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00409ab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x274]
mov esi, dword [ebp - 0x34]
or edi, 0x10
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0xf
mov byte [ebp - 0x274], 0
lea eax, [esi + 1]
mov dword [ebp - 0x224], edi
push eax
call fcn.00409fe0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push esi
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x274]
push eax
call fcn.00409bf0
push 1
push 0x571ccc
lea ecx, [ebp - 0x274]
call fcn.00409bf0
cmp dword [ebp - 0x260], 0x10
lea eax, [ebp - 0x274]
push dword [ebp - 0x264]
cmovae eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00409bf0
mov edi, dword [ebp - 0x22c]
and edi, 0xffffffef
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x238], edi
cmp edx, 0x10
jb 0x437f6a
mov ecx, dword [ebp - 0x274]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437f60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438862
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00409ab0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x219]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
mov byte [ebp - 0x219], 0x2e
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x284]
call fcn.0043c690
add esp, 8
lea ecx, [ebp - 0x2c]
push dword [eax]
lea eax, [ebp - 0x23c]
push eax
call fcn.0043c430
call fcn.005209a3
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x278], eax
cmovae esi, dword [ebp - 0x2c]
mov dword [eax], 0
lea eax, [ebp - 0x218]
push 0xa
push eax
push esi
call fcn.0051e3c8
add esp, 0xc
mov dword [ebp - 0x22c], edx
mov ecx, eax
mov dword [ebp - 0x230], ecx
cmp esi, dword [ebp - 0x218]
je 0x438867
mov eax, dword [ebp - 0x278]
cmp dword [eax], 0x22
je 0x438871
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x94]
cmp edx, eax
jae 0x4380e4
mov esi, dword [ebp - 0x22c]
sub eax, edx
push esi
push ecx
push 0
lea eax, [eax + eax*4]
add eax, eax
push eax
call fcn.00515c70
mov ecx, edx
mov dword [ebp - 0x230], eax
push ecx
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x254]
push eax
call fcn.0040b260
mov esi, eax
add esp, 8
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4380a4
mov ecx, eax
call fcn.00409830
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x4380de
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4380d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43887b
push edx
push ecx
call fcn.005150f8
add esp, 8
mov ecx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x22c]
cmp esi, dword [ebp - 0x258]
jl 0x4382c3
jg 0x438104
cmp ecx, dword [ebp - 0x25c]
jbe 0x4382c3
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x44]
add ecx, 0x224
cmp ecx, eax
je 0x438128
cmp dword [ebp - 0x30], 0x10
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00409ab0
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0xa4]
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x258], esi
call fcn.00409ab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x254]
mov esi, dword [ebp - 0x64]
or edi, 0x20
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
lea eax, [esi + 1]
mov dword [ebp - 0x224], edi
push eax
call fcn.00409fe0
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
push esi
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x254]
push eax
call fcn.00409bf0
push 1
push 0x571cd0
lea ecx, [ebp - 0x254]
call fcn.00409bf0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x254]
push eax
call fcn.00409bf0
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x238]
add esi, 0x1f4
or edi, 0x60
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x26c], xmm0
movups xmmword [ebp - 0x29c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x29c]
movq qword [ebp - 0x27c], xmm0
movq qword [ebp - 0x28c], xmm0
cmp esi, eax
je 0x438248
mov ecx, esi
call fcn.00409830
movups xmm0, xmmword [ebp - 0x26c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x27c]
movq qword [esi + 0x10], xmm0
jmp 0x438282
mov edx, dword [ebp - 0x288]
cmp edx, 0x10
jb 0x438282
mov ecx, dword [ebp - 0x29c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438278
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438880
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 5
and edi, 0xffffffdf
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x4382c3
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4382b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438885
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4382fb
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4382f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43888a
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x438333
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438329
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43888f
push edx
push ecx
call fcn.005150f8
add esp, 8
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x238], edi
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x437e30
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x280]
cmp dword [eax + 0x204], 0
jne 0x4385aa
push 7
push 0x571cd4
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
call fcn.00409ab0
lea eax, [esi + 0x1ac]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00409940
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2cc]
push 5
or edi, 1
mov dword [ebp - 0x2bc], 0
push 0x571cdc
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x2b8], 0xf
mov byte [ebp - 0x2cc], 0
call fcn.00409ab0
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00409940
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x2fc]
sub esp, 8
mov dword [ebp - 4], 0xd
or eax, 7
mov ecx, esp
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x29c]
push eax
push edx
call fcn.00419d30
mov ecx, dword [esi + 0x5c]
push 0xe
call fcn.0044d0b0
push fcn.0040e2f0
push 2
push 0x30
lea eax, [ebp - 0x2fc]
mov dword [ebp - 4], 3
push eax
call fcn.0051510b
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x438550
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438546
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438894
jmp 0x438546
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp eax, 0x10
jb 0x437c9e
mov ecx, dword [ebp - 0xa4]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x43859b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4388a3
push edx
push ecx
call fcn.005150f8
add esp, 8
jmp 0x437c9e
cmp dword [esi + 0x238], 0x10
lea eax, [esi + 0x224]
mov ecx, eax
mov dword [ebp - 0x228], eax
jb 0x4385c9
mov ecx, dword [eax]
mov dword [ebp - 0x228], ecx
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4385ea
push eax
push 0x2e
push ecx
call fcn.005174b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4385ea
sub edi, dword [ebp - 0x228]
jmp 0x4385ed
or edi, 0xffffffff
push edi
push 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x228], edi
push eax
lea ecx, [esi + 0x224]
call fcn.0043c3d0
push ecx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xf
call fcn.0040b120
add esp, 4
mov dword [esi + 0x258], eax
jmp 0x43863b
mov dword [ebp - 4], 0xe
lea ecx, [esi + 0x224]
mov dword [esi + 0x254], 0
mov byte [ebp - 4], 0x11
mov eax, dword [ecx + 0x10]
sub eax, edi
push eax
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0043c3d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x219]
mov eax, dword [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x5c]
add eax, ecx
mov byte [ebp - 0x219], 0x2e
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
push eax
cmovae ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.0043c690
add esp, 8
lea ecx, [ebp - 0x5c]
push dword [eax]
lea eax, [ebp - 0x284]
push eax
call fcn.0043c430
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040b120
mov edx, dword [ebp - 0x48]
mov ecx, eax
mov eax, dword [ebp - 0x220]
add esp, 4
mov dword [eax + 0x254], ecx
cmp edx, 0x10
jb 0x438704
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4386fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0xa8]
cmp edx, 0x10
jb 0x43873e
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438734
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
cmp edx, 0x10
jb 0x438790
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438786
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp eax, 0x10
jb 0x4387e1
mov ecx, dword [ebp - 0xa4]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4387d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x438811
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438807
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438853
push edx
push ecx
call fcn.005150f8
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
push str.invalid_stoll_argument
call fcn.004fdea7
push str.stoll_argument_out_of_range
call fcn.004fdee7
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
int3