Function at 0x41f830
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 0x53c52b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x58213c]
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 0x41f8b7
mov edi, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x28]
mov byte [esi + 0x25], 1
test ecx, ecx
je 0x41f8fd
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push edx
push dword [ebp - 0x60]
push dword [ebp - 0x74]
call fcn.0041f830
test al, al
jne 0x420265
mov edi, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test edi, edi
je 0x41f8fd
mov ecx, edi
call fcn.0040d9f0
push 0x3c
push edi
call fcn.005118f7
add esp, 8
mov edi, 0x582008
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x60], 0
jne 0x41f925
test byte [esi + 0x20], 4
jne 0x41f925
mov dword [ebp - 0x14], 0
jmp 0x41f92b
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 0x41f960
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00413a00
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 0x41f96d
lea eax, [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4202e7
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00408ac0
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, section..data
je 0x41f9ae
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41f9ae
push ecx
call fcn.00511f41
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 0x41f9cd
mov eax, ecx
shr eax, 1
and al, 1
mov byte [edx], al
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41f9d9
and cl, 1
mov byte [eax], cl
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x41f9f0
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 0x41fa7e
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 0x41fb0c
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], 0x54f498
call fcn.004138a0
mov ebx, 0xffffffff
test al, al
jne 0x41f910
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff8
cmp eax, section..data
je 0x41fb40
lock inc dword [eax]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f610
mov esi, dword [eax]
lea ecx, [esi - 8]
mov dword [ebp - 0x28], ecx
cmp ecx, section..data
je 0x41fb63
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, section..data
je 0x41fb96
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fb96
push edx
call fcn.00511f41
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x1c], 0x582008
cmp ecx, section..data
je 0x41fba8
lock inc dword [ecx]
lea eax, [ebp - 0x1c]
xchg dword [eax], esi
add esi, 0xfffffff8
cmp esi, section..data
je 0x41fbd1
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fbd1
push esi
call fcn.00511f41
mov ecx, dword [ebp - 0x28]
add esp, 4
mov byte [ebp - 4], 2
cmp ecx, section..data
je 0x41fbf3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fbf3
push ecx
call fcn.00511f41
add esp, 4
cmp byte [ebp - 0x50], 0
mov esi, dword [ebp - 0x34]
je 0x420173
cmp byte [esi + 0x24], 0
je 0x42016e
test byte [esi + 0x20], 4
je 0x41fc1a
cmp byte [ebp - 0x15], 0
jne 0x42016e
cmp dword [esi + 0x30], 2
je 0x41fd44
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00413a00
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x41fd44
test eax, 0x400
je 0x41fd44
cmp dword [esi + 0x30], 1
jne 0x41fd3e
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.004242f0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp byte [ecx], 0
je 0x41fcac
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.0041ea60
add esp, 4
test al, al
je 0x41fca9
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00420b70
add esp, 8
jmp 0x41fcbf
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
add eax, 0xfffffff8
cmp eax, section..data
je 0x41fcc2
lock inc dword [eax]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff8
mov byte [ebp - 4], 2
or ebx, 4
cmp ecx, section..data
je 0x41fcea
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fcea
push ecx
call fcn.00511f41
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.00407ce0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x2c], edx
cmp byte [edx + 0xd], 0
jne 0x41fd32
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
je 0x41fd37
push eax
push ecx
call fcn.00408280
add esp, 8
test eax, eax
js 0x41fd32
mov edx, dword [ebp - 0x2c]
jmp 0x41fd37
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, dword [esi + 0x34]
cmp edx, dword [eax]
je 0x41fd44
mov byte [ebp - 0xd], 0
jmp 0x41fd48
mov byte [ebp - 0xd], 1
test bl, 2
je 0x41fd7a
mov ecx, dword [ebp - 0x44]
and ebx, 0xfffffffd
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp ecx, section..data
je 0x41fd7a
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fd7a
push ecx
call fcn.00511f41
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x42016e
push 0x3c
call fcn.005118c7
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x42014c
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.00421140
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push 0x54c868
push eax
call fcn.00408a10
or ebx, 0x10
mov dword [ebp - 4], 8
push 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.005118c7
add esp, 0x14
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x41feee
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0
je 0x41fe69
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00411ea0
add esp, 8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x68]
call fcn.0040f610
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
lea eax, [edx - 8]
cmp eax, section..data
je 0x41fe31
lock inc dword [eax]
mov ecx, dword [ebp - 0x68]
or ebx, 0x100
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x41fe5e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fe5e
push ecx
call fcn.00511f41
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
or ebx, 0x40
jmp 0x41fe77
lea ecx, [ebp - 0x78]
or ebx, 0x80
mov edx, 0x582008
mov dword [ebp - 0x20], ebx
mov dword [eax], edx
mov dword [ecx], 0x582008
test bl, bl
jns 0x41feb3
mov ecx, dword [ebp - 0x78]
and ebx, 0xffffff7f
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, section..data
je 0x41feb3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41feb3
push ecx
call fcn.00511f41
add esp, 4
test bl, 0x40
je 0x41fee2
mov ecx, dword [ebp - 0x7c]
and ebx, 0xffffffbf
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, section..data
je 0x41fee2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41fee2
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 4], 0xffffffff
jmp 0x41fef0
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 0xb
test bl, 0x10
je 0x41ff2c
mov ecx, dword [ebp - 0x70]
and ebx, 0xffffffef
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, section..data
je 0x41ff2c
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41ff2c
push ecx
call fcn.00511f41
add esp, 4
test bl, 8
je 0x41ff5b
mov ecx, dword [ebp - 0x80]
and ebx, 0xfffffff7
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ebx
cmp ecx, section..data
je 0x41ff5b
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41ff5b
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
add eax, 0xfffffff8
cmp eax, section..data
je 0x41ff71
lock inc dword [eax]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ecx + 0x14]
push eax
call fcn.00411ea0
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], 0x582008
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 0x42014e
test ecx, ecx
jne 0x42008b
push 8
call fcn.005118c7
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x420025
push 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.005118c7
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 0x42002a
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 0x420058
mov ebx, dword [eax]
mov dword [eax], ecx
test ebx, ebx
je 0x420081
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax + 4]
push ebx
call fcn.00407c80
jmp 0x42006a
test ecx, ecx
je 0x420081
mov eax, dword [ecx]
push dword [eax + 4]
push ecx
call fcn.00407c80
mov ebx, dword [ebp - 0x24]
push 0x14
push dword [ebx]
call fcn.005118f7
push 8
push ebx
call fcn.005118f7
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ebx, dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x34], ebx
jmp 0x42008e
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00407ce0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x9c], xmm0
cmp byte [ecx + 0xd], 0
jne 0x4200d1
mov ecx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
je 0x420147
push ecx
push eax
call fcn.00408280
add esp, 8
test eax, eax
jns 0x420147
cmp dword [ebx + 4], 0xccccccc
je 0x420331
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.005118c7
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x420118
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.004107c0
mov eax, dword [ebp - 0x30]
jmp 0x42014e
xor eax, eax
mov ebx, dword [esi + 0x28]
mov byte [ebp - 4], 2
mov dword [esi + 0x28], eax
test ebx, ebx
je 0x42016e
mov ecx, ebx
call fcn.0040d9f0
push 0x3c
push ebx
call fcn.005118f7
add esp, 8
mov al, byte [esi + 0x20]
jmp 0x420178
mov eax, dword [esi + 0x20]
shr eax, 1
test al, 1
je 0x4201c8
cmp byte [esi + 0x24], 0
jne 0x420188
cmp dword [esi + 8], 1
jle 0x4201b4
mov eax, dword [ebp - 0x34]
mov esi, dword [esi]
mov eax, dword [eax + 8]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4201c8
push 1
push edi
push dword [esi]
call fcn.0041f5f0
add esp, 0xc
test al, al
jne 0x4201b1
add esi, 4
cmp esi, ebx
jne 0x420197
jmp 0x4201c8
mov esi, dword [ebp - 0x34]
test byte [esi + 0x20], 4
je 0x42026c
cmp byte [ebp - 0x15], 0
je 0x42026c
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp dword [esi + 0x28], 0
jne 0x42020c
mov byte [ebp - 4], 0
mov ebx, 0xffffffff
cmp ecx, section..data
je 0x41f910
or ebx, ebx
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x41f910
push ecx
call fcn.00511f41
add esp, 4
jmp 0x41f910
or ebx, 0xffffffff
cmp ecx, section..data
je 0x42022b
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jne 0x42022b
push ecx
call fcn.00511f41
add esp, 4
mov edx, dword [ebp - 0x48]
add edi, 0xfffffff8
mov dword [ebp - 4], 0xffffffff
cmp edi, section..data
je 0x41f8b4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
cmp eax, 0xffffffff
jne 0x41f8b4
push edi
call fcn.00511f41
mov edx, dword [ebp - 0x48]
add esp, 4
jmp 0x41f8b4
mov al, 1
jmp 0x42030c
mov eax, dword [ebp - 0x1c]
add esi, 0x2c
add eax, 0xfffffff8
cmp eax, section..data
je 0x42027f
lock inc dword [eax]
mov eax, dword [ebp - 0x1c]
xchg dword [esi], eax
lea ecx, [eax - 8]
or ebx, 0xffffffff
cmp ecx, section..data
je 0x4202a6
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jne 0x4202a6
push ecx
call fcn.00511f41
add esp, 4
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x4202b2
mov al, byte [ebp - 0x15]
mov byte [ecx], al
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4202be
mov eax, dword [ebp - 0x50]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp ecx, section..data
je 0x4202e1
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4202e1
push ecx
call fcn.00511f41
add esp, 4
mov byte [ebp - 0xd], 1
jmp 0x4202eb
mov byte [ebp - 0xd], 0
add edi, 0xfffffff8
cmp edi, section..data
je 0x420309
lock xadd dword [edi], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x420309
push edi
call fcn.00511f41
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.00511b56
lea esp, [ebp + 0x254]
pop ebp
ret 0x18
call fcn.00410f80
int3