Function at 0x41b510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1b31
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x34], 0
push 0
xor dl, dl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 3
call fcn.0041a520
add esp, 4
lea ecx, [ebp + 0x10]
push 0x63a554
call fcn.004204b0
mov eax, dword [ebp + 0x10]
push 0x63bfdc
mov eax, dword [eax - 0xc]
inc eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], eax
call fcn.004021e0
mov byte [ebp - 4], 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push str._s._s
push eax
call fcn.00404520
add esp, 0x10
lea ecx, [ebp - 0x78]
call fcn.004b029e
push 0
push 0
push 0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
push 1
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
lea edi, [ebp - 0x30]
call fcn.004046f0
add eax, 0x10
add esp, 4
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [esi], eax
call fcn.00415cb0
add esp, 0x14
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call fcn.00421620
mov edi, eax
mov dword [ebp - 0x64], edi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x70]
xor ecx, ecx
or ebx, 0xffffffff
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], ecx
test eax, eax
jle 0x41b78f
lea ebx, [ebx]
test ecx, ecx
js 0x41b80d
cmp ecx, eax
jge 0x41b80d
mov eax, dword [ebp - 0x74]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x41b64c
cmp ecx, dword [esi - 0x10]
jne 0x41b64c
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41b685
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41b824
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi - 0xc]
lea eax, [edx + esi]
cmp ecx, eax
jle 0x41b75b
sub ecx, edx
push esi
sub ecx, esi
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404140
mov byte [ebp - 4], 8
cmp esi, 9
mov esi, dword [ebp - 0x2c]
jle 0x41b709
lea eax, [esi - 0x10]
push eax
call fcn.004046f0
add esp, 4
lea ebx, [eax + 0x10]
push ebx
call fcn.005c0700
mov dword [ebp - 0x40], eax
lea eax, [ebx - 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x38], eax
add esp, 4
mov dword [ebp - 0x3c], edx
add eax, 0xc
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b704
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
jmp 0x41b717
push 0xa
push 0
push esi
call fcn.005bc96e
add esp, 0xc
cdq
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
test edx, edx
jl 0x41b73e
jg 0x41b727
test eax, eax
je 0x41b73e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x64]
call fcn.004208d0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00404570
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b75b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b778
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x44]
jge 0x41b78c
mov eax, dword [ebp - 0x70]
jmp 0x41b610
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41b917
mov esi, dword [edi]
cmp edi, esi
je 0x41b917
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
call fcn.004070f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], eax
cmp esi, edi
je 0x41b922
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jle 0x41b922
mov edi, dword [esi + 0x18]
sub edi, 0x10
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x41b812
cmp ecx, dword [edi]
jne 0x41b812
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41b855
call fcn.004a3fa3
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x44], edx
test edx, edx
jne 0x41b829
call fcn.00401f40
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.005bc17a
mov edi, dword [ebp - 0x44]
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x44], edi
push 0
push edi
mov byte [ebp - 4], 0xa
call fcn.004afdd8
mov dword [ebp - 4], 9
jmp 0x41b892
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b8a2
test al, 0x10
je 0x41b8a5
dec dword [ebp - 0x18]
cmp byte [esi + 0xd], 0
jne 0x41b8ea
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41b8cc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x41b8e7
mov edi, edi
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x41b8c0
jmp 0x41b8e7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41b8e5
cmp esi, dword [eax + 8]
jne 0x41b8e5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41b8d5
mov esi, eax
mov dword [ebp - 0x2c], esi
add edi, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x41b907
mov edi, dword [ebp - 0x64]
jmp 0x41b7d2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x64]
jmp 0x41b7d2
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x20], eax
jmp 0x41b925
mov edi, dword [ebp - 0x24]
push 0x63bfdc
lea ecx, [ebp - 0x1c]
call fcn.004021e0
mov esi, dword [ebp - 0x28]
push esi
mov byte [ebp - 4], 0xd
movsd xmm0, qword [0x6546a8]
sub esp, 8
movsd qword [esp], xmm0
call fcn.00422540
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
subsd xmm0, qword [0x654680]
add esp, 0xc
movsd qword [ebp - 0x58], xmm0
fld qword [ebp - 0x58]
call fcn.005c6186
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x2c], ecx
lea ebx, [ebx]
mov eax, dword [ebp - 0x20]
add edi, 1
adc eax, 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
cmp eax, edx
jl 0x41b9b5
jg 0x41b99a
cmp edi, dword [ebp - 0x44]
jbe 0x41b9b5
mov edi, 1
inc ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
jg 0x41be06
push 0x63bfdc
lea ecx, [ebp - 0x18]
call fcn.004021e0
mov byte [ebp - 4], 0xe
cmp esi, 9
jle 0x41bbbc
mov eax, dword [ebp - 0x20]
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.0041d790
add esp, 8
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
mov edi, dword [ebp - 0x18]
lea esi, [edx - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x41ba91
cmp dword [edi + 0xc], 0
jl 0x41ba85
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41ba85
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x41ba25
cmp ecx, dword [esi]
jne 0x41ba25
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41ba67
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x41b824
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.005bc17a
mov esi, dword [ebp - 0x40]
add esp, 0x10
mov eax, ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41ba7d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x41ba91
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00402090
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bab1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp dword [eax - 0xc], ecx
jge 0x41bbd2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push 0x640d60
push eax
call fcn.00404060
add esp, 0xc
mov byte [ebp - 4], 0x10
mov edx, dword [eax]
mov edi, dword [ebp - 0x18]
lea esi, [edx - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x41bb8b
cmp dword [edi + 0xc], 0
jl 0x41bb7f
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41bb7f
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x41bb21
cmp ecx, dword [esi]
jne 0x41bb21
mov ebx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41bb5d
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x41b824
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41bb74
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x18], eax
or ebx, 0xffffffff
jmp 0x41bb8b
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00402090
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bbab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp dword [eax - 0xc], ecx
jl 0x41bac0
jmp 0x41bbd2
push edi
push esi
lea eax, [ebp - 0x18]
push 0x640d64
push eax
call fcn.00404520
mov eax, dword [ebp - 0x18]
add esp, 0x10
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push str._s_s._s
push eax
call fcn.00404520
mov esi, dword [ebp - 0x1c]
add esp, 0x14
mov byte [ebp - 0x11], 1
push 0
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x48], esp
mov eax, dword [ecx]
mov dword [ebp - 0x40], esp
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x41bc20
cmp ecx, dword [esi - 0x10]
jne 0x41bc20
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41bc59
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41b824
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
mov ecx, dword [ebp - 0x40]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 0x11
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x40], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x41bc92
cmp ecx, dword [esi - 0x10]
jne 0x41bc92
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41bccb
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41b824
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
mov ecx, dword [ebp - 0x40]
mov dl, byte [ebp - 0x11]
lea eax, [edi + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.0041a740
add esp, 0xc
mov byte [ebp - 4], 0x12
mov edx, dword [eax]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea esi, [edx - 0x10]
mov dword [ebp - 0x48], eax
cmp esi, eax
je 0x41bda3
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x40], ecx
jl 0x41bd97
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x41bd97
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x41bd3a
cmp ecx, dword [esi]
jne 0x41bd3a
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41bd76
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x41b824
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
mov ecx, dword [ebp - 0x40]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41bd8f
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x41bda3
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00402090
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bdc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bde3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41be06
test al, 0x10
jne 0x41be06
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
jmp 0x41b980
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x41be2f
cmp ecx, dword [esi - 0x10]
jne 0x41be2f
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x41be69
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x41be43
call fcn.00401f40
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.005bc17a
add esp, 0x10
mov esi, dword [ebp - 0x5c]
lea eax, [edi + 0x10]
mov dword [esi], eax
or dword [ebp - 0x34], 1
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41be95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
push eax
push dword [eax]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x64]
call fcn.00420ef0
push dword [ebp - 0x64]
call fcn.004996ff
add esp, 4
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.004b02b5
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bee2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bf02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bf22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41bf40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret