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

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x53d5db
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x58313c]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x25c]
mov edx, dword [ebp + 0x264]
mov edi, dword [ebp + 0x270]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x260]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x268]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x26c]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x48], edx
or ebx, 0xffffffff
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
jmp 0x41ff97
mov edi, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x28]
mov byte [esi + 0x25], 1
test ecx, ecx
je 0x41ffdd
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push edx
push dword [ebp - 0x60]
push dword [ebp - 0x74]
call fcn.0041ff10
test al, al
jne 0x420945
mov edi, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test edi, edi
je 0x41ffdd
mov ecx, edi
call fcn.0040eca0
push 0x3c
push edi
call fcn.005128a7
add esp, 8
mov edi, 0x583010
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x60], 0
jne 0x420005
test byte [esi + 0x20], 4
jne 0x420005
mov dword [ebp - 0x14], 0
jmp 0x42000b
lea eax, [ebp - 0x15]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x420040
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00414490
add esp, 8
lea ecx, [ebp]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x50]
cmp eax, 0xffffffff
mov dword [ecx + 4], eax
jmp 0x42004d
lea eax, [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4209c7
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040a680
mov eax, edi
add esp, 8
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], eax
lea ecx, [eax - 8]
cmp ecx, 0x583008
je 0x42008e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x42008e
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp]
mov eax, ecx
mov edx, dword [ebp - 0x14]
shr eax, 4
and eax, 0xffffff01
mov dword [ebp - 0x50], eax
test edx, edx
je 0x4200ad
mov eax, ecx
shr eax, 1
and al, 1
mov byte [edx], al
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4200b9
and cl, 1
mov byte [eax], cl
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x4200d0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
add eax, dword [ebp + 0x20]
mov dword [edx], eax
adc ecx, 0
mov dword [edx + 4], ecx
cmp dword [ebp - 0x54], 0
je 0x42015e
mov ecx, dword [ebp + 0x14]
mov edx, 0x3886594b
mov eax, dword [ebp + 0x18]
add ecx, 0x2ac18000
mov ebx, 0x346dc5d6
adc eax, 0xfe624e21
mov dword [ebp - 0x14], eax
mov eax, ecx
mul edx
mov esi, edx
mov dword [ebp - 0x40], eax
mov eax, ecx
mov ecx, 0x3886594b
mul ebx
mov dword [ebp - 0x28], edx
mov ebx, eax
mov eax, dword [ebp - 0x14]
mul ecx
mov dword [ebp - 0x2c], edx
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x2c]
adc edx, 0
mov dword [ebp - 0x14], eax
add ebx, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x24]
adc edx, eax
mov eax, dword [ebp - 0x54]
shrd ecx, edx, 0xb
shr edx, 0xb
mov dword [eax], ecx
mov dword [eax + 4], edx
cmp dword [ebp - 0x58], 0
je 0x4201ec
mov ecx, dword [ebp + 4]
mov edx, 0x3886594b
mov eax, dword [ebp + 8]
add ecx, 0x2ac18000
mov ebx, 0x346dc5d6
adc eax, 0xfe624e21
mov dword [ebp - 0x14], eax
mov eax, ecx
mul edx
mov esi, edx
mov dword [ebp - 0x40], eax
mov eax, ecx
mov ecx, 0x3886594b
mul ebx
mov dword [ebp - 0x28], edx
mov ebx, eax
mov eax, dword [ebp - 0x14]
mul ecx
mov dword [ebp - 0x2c], edx
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x2c]
adc edx, 0
mov dword [ebp - 0x14], eax
add ebx, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x14]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x24]
adc edx, eax
mov eax, dword [ebp - 0x58]
shrd ecx, edx, 0xb
shr edx, 0xb
mov dword [eax], ecx
mov dword [eax + 4], edx
inc dword [esi + 0x18]
push ecx
mov eax, esp
lea ecx, [ebp - 0x5c]
mov dword [eax], 0x550670
call fcn.00414330
mov ebx, 0xffffffff
test al, al
jne 0x41fff0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x420220
lock inc dword [eax]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00410690
mov esi, dword [eax]
lea ecx, [esi - 8]
mov dword [ebp - 0x28], ecx
cmp ecx, 0x583008
je 0x420243
lock inc dword [ecx]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
or ebx, 1
add edx, 0xfffffff8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp edx, 0x583008
je 0x420276
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
cmp eax, 0xffffffff
jne 0x420276
push edx
call fcn.005128b5
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x1c], 0x583010
cmp ecx, 0x583008
je 0x420288
lock inc dword [ecx]
lea eax, [ebp - 0x1c]
xchg dword [eax], esi
add esi, 0xfffffff8
cmp esi, 0x583008
je 0x4202b1
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
cmp eax, 0xffffffff
jne 0x4202b1
push esi
call fcn.005128b5
mov ecx, dword [ebp - 0x28]
add esp, 4
mov byte [ebp - 4], 2
cmp ecx, 0x583008
je 0x4202d3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4202d3
push ecx
call fcn.005128b5
add esp, 4
cmp byte [ebp - 0x50], 0
mov esi, dword [ebp - 0x34]
je 0x420853
cmp byte [esi + 0x24], 0
je 0x42084e
test byte [esi + 0x20], 4
je 0x4202fa
cmp byte [ebp - 0x15], 0
jne 0x42084e
cmp dword [esi + 0x30], 2
je 0x420424
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x420424
test eax, 0x400
je 0x420424
cmp dword [esi + 0x30], 1
jne 0x42041e
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004249c0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp byte [ecx], 0
je 0x42038c
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.0041f220
add esp, 4
test al, al
je 0x420389
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00421250
add esp, 8
jmp 0x42039f
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x4203a2
lock inc dword [eax]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff8
mov byte [ebp - 4], 2
or ebx, 4
cmp ecx, 0x583008
je 0x4203ca
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4203ca
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa8]
or ebx, 2
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.004098a0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x2c], edx
cmp byte [edx + 0xd], 0
jne 0x420412
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
je 0x420417
push eax
push ecx
call fcn.00409e40
add esp, 8
test eax, eax
js 0x420412
mov edx, dword [ebp - 0x2c]
jmp 0x420417
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [esi + 0x34]
cmp edx, dword [eax]
je 0x420424
mov byte [ebp - 0xd], 0
jmp 0x420428
mov byte [ebp - 0xd], 1
test bl, 2
je 0x42045a
mov ecx, dword [ebp - 0x44]
and ebx, 0xfffffffd
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp ecx, 0x583008
je 0x42045a
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x42045a
push ecx
call fcn.005128b5
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x42084e
push 0x3c
call fcn.00512877
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x42082c
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x3c], ecx
lea ecx, [esi + 0x10]
push ecx
push eax
call fcn.00421820
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push 0x54da40
push eax
call fcn.0040a5d0
or ebx, 0x10
mov dword [ebp - 4], 8
push 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.00512877
add esp, 0x14
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4205ce
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0
je 0x420549
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00412c60
add esp, 8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x68]
call fcn.00410690
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
lea eax, [edx - 8]
cmp eax, 0x583008
je 0x420511
lock inc dword [eax]
mov ecx, dword [ebp - 0x68]
or ebx, 0x100
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x42053e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x42053e
push ecx
call fcn.005128b5
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
or ebx, 0x40
jmp 0x420557
lea ecx, [ebp - 0x78]
or ebx, 0x80
mov edx, 0x583010
mov dword [ebp - 0x20], ebx
mov dword [eax], edx
mov dword [ecx], 0x583010
test bl, bl
jns 0x420593
mov ecx, dword [ebp - 0x78]
and ebx, 0xffffff7f
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, 0x583008
je 0x420593
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x420593
push ecx
call fcn.005128b5
add esp, 4
test bl, 0x40
je 0x4205c2
mov ecx, dword [ebp - 0x7c]
and ebx, 0xffffffbf
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, 0x583008
je 0x4205c2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4205c2
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 4], 0xffffffff
jmp 0x4205d0
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 0xb
test bl, 0x10
je 0x42060c
mov ecx, dword [ebp - 0x70]
and ebx, 0xffffffef
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, 0x583008
je 0x42060c
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x42060c
push ecx
call fcn.005128b5
add esp, 4
test bl, 8
je 0x42063b
mov ecx, dword [ebp - 0x80]
and ebx, 0xfffffff7
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, 0x583008
je 0x42063b
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x42063b
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x420651
lock inc dword [eax]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ecx + 0x14]
push eax
call fcn.00412c60
add esp, 8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x20], ecx
mov word [eax + 0x24], 1
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0x583010
mov ecx, dword [ebp - 0x28]
lea edx, [eax + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x34], ecx
mov dword [ebp - 0x14], edx
mov dword [edx], 0
cmp dword [ebp - 0x28], 1
mov byte [ebp - 4], 0x12
jne 0x42082e
test ecx, ecx
jne 0x42076b
push 8
call fcn.00512877
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x420705
push 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00512877
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ecx], eax
jmp 0x42070a
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
or ebx, 0x200
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x20], ebx
cmp eax, edx
je 0x420738
mov ebx, dword [eax]
mov dword [eax], ecx
test ebx, ebx
je 0x420761
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax + 4]
push ebx
call fcn.00409840
jmp 0x42074a
test ecx, ecx
je 0x420761
mov eax, dword [ecx]
push dword [eax + 4]
push ecx
call fcn.00409840
mov ebx, dword [ebp - 0x24]
push 0x14
push dword [ebx]
call fcn.005128a7
push 8
push ebx
call fcn.005128a7
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ebx, dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x34], ebx
jmp 0x42076e
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004098a0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x9c], xmm0
cmp byte [ecx + 0xd], 0
jne 0x4207b1
mov ecx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
je 0x420827
push ecx
push eax
call fcn.00409e40
add esp, 8
test eax, eax
jns 0x420827
cmp dword [ebx + 4], 0xccccccc
je 0x420a11
mov eax, dword [ebx]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x88], ebx
push 0x14
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x84], 0
call fcn.00512877
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x4207f8
lock inc dword [ecx]
mov ecx, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x98]
mov dword [eax], ecx
push dword [ebp - 0x9c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
mov word [eax + 0xc], 0
mov dword [ebp - 0x84], 0
call fcn.004116d0
mov eax, dword [ebp - 0x30]
jmp 0x42082e
xor eax, eax
mov ebx, dword [esi + 0x28]
mov byte [ebp - 4], 2
mov dword [esi + 0x28], eax
test ebx, ebx
je 0x42084e
mov ecx, ebx
call fcn.0040eca0
push 0x3c
push ebx
call fcn.005128a7
add esp, 8
mov al, byte [esi + 0x20]
jmp 0x420858
mov eax, dword [esi + 0x20]
shr eax, 1
test al, 1
je 0x4208a8
cmp byte [esi + 0x24], 0
jne 0x420868
cmp dword [esi + 8], 1
jle 0x420894
mov eax, dword [ebp - 0x34]
mov esi, dword [esi]
mov eax, dword [eax + 8]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4208a8
push 1
push edi
push dword [esi]
call fcn.0041fd90
add esp, 0xc
test al, al
jne 0x420891
add esi, 4
cmp esi, ebx
jne 0x420877
jmp 0x4208a8
mov esi, dword [ebp - 0x34]
test byte [esi + 0x20], 4
je 0x42094c
cmp byte [ebp - 0x15], 0
je 0x42094c
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp dword [esi + 0x28], 0
jne 0x4208ec
mov byte [ebp - 4], 0
mov ebx, 0xffffffff
cmp ecx, 0x583008
je 0x41fff0
or ebx, ebx
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fff0
push ecx
call fcn.005128b5
add esp, 4
jmp 0x41fff0
or ebx, 0xffffffff
cmp ecx, 0x583008
je 0x42090b
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jne 0x42090b
push ecx
call fcn.005128b5
add esp, 4
mov edx, dword [ebp - 0x48]
add edi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x583008
je 0x41ff94
mov eax, ebx
lock xadd dword [edi], eax
dec eax
cmp eax, 0xffffffff
jne 0x41ff94
push edi
call fcn.005128b5
mov edx, dword [ebp - 0x48]
add esp, 4
jmp 0x41ff94
mov al, 1
jmp 0x4209ec
mov eax, dword [ebp - 0x1c]
add esi, 0x2c
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x42095f
lock inc dword [eax]
mov eax, dword [ebp - 0x1c]
xchg dword [esi], eax
lea ecx, [eax - 8]
or ebx, 0xffffffff
cmp ecx, 0x583008
je 0x420986
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jne 0x420986
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x420992
mov al, byte [ebp - 0x15]
mov byte [ecx], al
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x42099e
mov eax, dword [ebp - 0x50]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp ecx, 0x583008
je 0x4209c1
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4209c1
push ecx
call fcn.005128b5
add esp, 4
mov byte [ebp - 0xd], 1
jmp 0x4209cb
mov byte [ebp - 0xd], 0
add edi, 0xfffffff8
cmp edi, 0x583008
je 0x4209e9
lock xadd dword [edi], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x4209e9
push edi
call fcn.005128b5
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00512b0b
lea esp, [ebp + 0x254]
pop ebp
ret 0x18
call fcn.00411d50
int3