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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4b11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x380
push esi
push edi
xor edi, edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0xf8]
push 0xa
xor eax, eax
mov byte [ebp - 0x19], dl
push 0x4d021c
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
call fcn.0043d1b0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], edi
call fcn.00457df0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xb4]
push ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc8], 0x4d0234
push eax
push edi
mov dword [ebp - 0xc4], 0x4d0234
mov dword [ebp - 0xc0], 0x4d0270
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0x18], edi
call fcn.0045be60
mov ecx, dword [ebp - 0xb0]
mov eax, ecx
mov edx, dword [ebp - 0xb4]
sub eax, edx
sar eax, 2
test eax, eax
je 0x454485
cmp edx, ecx
cmovne ecx, edx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xa8], 0
push 0x24
mov byte [ebp - 4], 3
call fcn.0046fd13
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xc8]
add esp, 4
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x9c], 0x100
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0x100
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x100
mov dword [ebp - 0x78], 0x8775dfb
call fcn.0045bed0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0045b870
mov esi, eax
test esi, esi
je 0x454545
lock inc dword [esi + 0x20]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x454560
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x454560
mov ecx, dword [ebp - 0x6c]
xor edx, edx
call fcn.00453e80
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x6c], esi
call fcn.004390d0
push 0x250
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00487c20
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x110]
add esp, 0xc
mov edx, esi
push 0x4d0274
call fcn.0045a200
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x390]
cmp dword [ebp - 0xfc], 8
lea eax, [ebp - 0x110]
push ecx
cmovae eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x454a55
mov eax, dword [ebp - 0x390]
shr eax, 4
and al, 1
je 0x454a3d
xor eax, eax
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x364]
mov dword [ebp - 0x28], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454600
sub eax, edx
lea ecx, [ebp - 0x3c]
sar eax, 1
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0043d1b0
push 0x4d0208
mov edx, esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x128]
call fcn.0045a200
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
push dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.00459640
mov dword [ebp - 0xd0], 0
or edi, 4
mov dword [ebp - 0xcc], 0
xor ecx, ecx
mov dword [ebp - 0x18], edi
movups xmm0, xmmword [eax]
mov dword [ebp - 0x20], edi
movups xmmword [ebp - 0xe0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xd0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xa
call fcn.0043d150
push 0x4d020c
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x54]
call fcn.0045a200
add esp, 4
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x4546c9
mov eax, dword [eax]
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
push edx
cmovae ecx, dword [ebp - 0x3c]
push eax
push ecx
call fcn.0049a24a
add esp, 0xc
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.0043d150
test esi, esi
jne 0x4546f2
mov al, byte [ebp - 0x19]
jmp 0x454740
push 0x4d0218
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x54]
call fcn.0045a200
add esp, 4
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x454713
mov eax, dword [eax]
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
push edx
cmovae ecx, dword [ebp - 0x3c]
push eax
push ecx
call fcn.0049a24a
add esp, 0xc
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.0043d150
test esi, esi
jne 0x45473e
mov al, byte [ebp - 0x19]
xor al, 1
jmp 0x454740
xor al, al
test al, al
je 0x4547e2
push 0x4d0208
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x140]
call fcn.0045a200
add esp, 4
mov edx, dword [ebx + 8]
or edi, 1
mov byte [ebp - 4], 0xb
mov ecx, edx
mov dword [ebp - 0x18], edi
cmp dword [edx + 0x14], 8
jb 0x454778
mov ecx, dword [edx]
push dword [edx + 0x10]
push ecx
mov ecx, eax
call fcn.00459640
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x44], 0
or edi, 0xb
mov dword [ebp - 0x40], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], edi
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4547e2
shr eax, 4
not al
mov byte [ebp - 0x11], 1
and al, 1
jne 0x4547e6
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
test al, 2
je 0x4547fe
and eax, 0xfffffffd
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18], eax
call fcn.0043d150
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xa
test al, 1
je 0x45481a
and eax, 0xfffffffe
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x18], eax
call fcn.0043d150
cmp byte [ebp - 0x11], 0
je 0x454a20
xorps xmm0, xmm0
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xa8], 0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], 0
mov byte [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x78], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
sub esp, 8
push eax
push ecx
lea ecx, [ebp - 0xac]
call fcn.0045b5b0
add esp, 0x10
test al, al
je 0x4549c2
mov ecx, dword [ebp - 0xa0]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xa4]
sub ecx, esi
imul ecx
lea eax, [ebp - 0x80]
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmovne eax, esi
cmp byte [eax + 8], 0
je 0x4548e8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4548ec
xor ecx, ecx
xor eax, eax
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 2
jle 0x4549cd
lea eax, [ebp - 0x80]
cmp edi, 1
jbe 0x454905
lea eax, [esi + 0xc]
cmp byte [eax + 8], 0
je 0x454912
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x454916
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], dx
cmp ecx, eax
je 0x45493c
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.0043d1b0
mov edi, dword [ebp - 0x18]
or edi, 0x30
mov byte [ebp - 4], 0xd
call fcn.0049a127
cmp dword [ebp - 0x40], 8
lea esi, [ebp - 0x54]
mov dword [ebp - 0x20], eax
cmovae esi, dword [ebp - 0x54]
mov dword [eax], 0
lea eax, [ebp - 0x70]
push 0xa
push eax
push esi
call fcn.0049a21e
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x70]
je 0x454ad2
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x22
je 0x454ac8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
call fcn.0043d150
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x4549c5
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x454ac3
mov eax, dword [ecx]
lea edx, [ebp - 0xe0]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
mov esi, dword [ebp - 0xa4]
jmp 0x4549d0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0xa4]
jmp 0x4549d0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x454a23
mov ecx, dword [ebp - 0x9c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x454a14
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454abe
push ecx
push esi
call fcn.0046fd05
add esp, 8
jmp 0x454a23
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0xe0]
call fcn.0043d150
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.0043d150
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x390]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4545d2
lea ecx, [ebp - 0x110]
call fcn.0043d150
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x454a7b
or ecx, 0xffffffff
lock xadd dword [eax + 0x20], ecx
jne 0x454a7b
mov ecx, dword [ebp - 0x6c]
xor edx, edx
call fcn.00453e80
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x454aa0
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x454aa0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea ecx, [ebp - 0xf8]
call fcn.0043d150
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004972dd
call fcn.0046d6d4
push str.stoi_argument_out_of_range
call fcn.0046d731
push str.invalid_stoi_argument
call fcn.0046d6f1
int3