Function at 0x11153f0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
add eax, 0x12970
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 0x18], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jle 0x1115706
jmp 0x1115432
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebx]
mov esi, dword [edx + 0x3540]
mov dword [ebp - 0x14], eax
cmp esi, ecx
je 0x11156f3
cmp dword [esi + 8], ecx
jne 0x11156f3
lea edi, [esi + 0x28]
cmp edi, ecx
je 0x11156f3
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [esi + 0x24]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
test edi, edi
je 0x111547e
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esi + 0x84]
xor ebx, ebx
test eax, eax
je 0x11154a8
mov edx, dword [esi + 0x80]
xor ecx, ecx
test edx, edx
jbe 0x11154a8
mov edi, dword [ebp - 0x14]
cmp dword [eax + 4], edi
je 0x11154bf
add eax, dword [esi + 0x14]
inc ecx
cmp ecx, edx
jb 0x1115496
jmp 0x11154ab
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x11154c1
cmp dword [eax + 4], edi
je 0x11154bf
mov eax, dword [eax]
test eax, eax
jne 0x11154b2
jmp 0x11154c1
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test ebx, ebx
je 0x11156f3
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x11156f3
cmp dword [eax + 0xa4], 0
je 0x11154f0
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0xa8], 0
je 0x1115505
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov ecx, dword [0x118600c]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push ecx
push eax
call fcn.010f6320
mov esi, eax
test esi, esi
je 0x111554b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov edx, dword [edi]
push ecx
push esi
add edx, 0x12a0c
push 0
push edx
call fcn.0110a0f0
add esp, 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x28], 0
je 0x111555b
mov dword [ebp - 0x18], 1
cmp dword [eax + 0x100b4], 0
je 0x1115654
mov esi, dword [eax + 0x100b4]
test esi, esi
jne 0x1115576
xor eax, eax
jmp 0x111558d
cmp word [esi], 0
mov eax, esi
je 0x1115589
mov edi, edi
add eax, 2
cmp word [eax], 0
jne 0x1115580
sub eax, esi
sar eax, 1
push eax
push 0x5c
push esi
call fcn.0102bf90
test eax, eax
je 0x111559f
add eax, 2
jmp 0x11155a1
mov eax, esi
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x101fb24
lea ecx, [ebp - 0x824]
push 0x3ff
push ecx
call fcn.0102c0d0
add esp, 0x14
push 0x801
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1115654
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
lea ecx, [ebp - 0x824]
push ecx
add eax, 0x3c22
push 0x100b62c
push eax
call fcn.0107fe70
mov esi, eax
test esi, esi
je 0x1115644
push esi
push 0x101fb10
push 0x3ff
push edi
call fcn.0102c0d0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add esp, 0x10
push edi
push edx
push ecx
call fcn.0107ed20
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 0x100b4]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebx + 0x18]
mov edx, dword [edx + 0x268]
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call edx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x5c]
cmp dword [ebp - 0x10], eax
jg 0x1115684
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x1115697
cmp dword [ecx + 0x58], 0
mov dword [ebp - 8], 0
je 0x111569e
mov dword [ebp - 8], 1
mov edx, dword [ecx + 0x54]
test edx, edx
je 0x11156df
mov edi, dword [ebp - 4]
push edx
test edi, edi
jne 0x11156be
call fcn.0102bd10
push eax
push edx
call fcn.0102c110
mov dword [ebp - 4], eax
jmp 0x11156df
push 0
push edi
call fcn.0107fe70
mov esi, eax
test esi, esi
je 0x11156df
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x11156f3
push eax
call fcn.010ee930
mov dword [ebx + 0x18], 0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
inc eax
cmp eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
jl 0x1115430
mov edi, dword [ebx]
push 0x100dd
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x11157ac
cmp dword [ebp - 8], 0
mov dword [esi], edi
je 0x1115784
push 0x10051a4
push 0x101fac0
push esi
call fcn.0104a320
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x111574d
mov eax, 0x100f874
push eax
push 0x10050cc
push 0x100d1f8
push esi
call fcn.0104a320
mov eax, dword [esi + 0x5c]
add esp, 0x10
cmp eax, 2
jg 0x111576e
mov eax, 2
push 0x100519c
push 0x100d1ec
push esi
mov dword [esi + 0x5c], eax
call fcn.0104a320
add esp, 0xc
push esi
call fcn.0104a370
mov edx, dword [esi + 0x28]
mov eax, dword [ebx]
mov eax, dword [eax + 0x268]
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [ebp + 0x10]
push ecx
push edx
call eax
push esi
call fcn.010ee930
mov ecx, dword [ebx]
mov eax, 0x101fa90
add eax, 2
cmp word [eax], 0
jne 0x11157b3
mov ecx, dword [ecx + 0x268]
sub eax, 0x101fa90
push 0
sar eax, 1
lea edx, [ebp + 8]
push edx
add eax, eax
push eax
mov eax, dword [ebp + 0x10]
push 0x101fa90
push eax
call ecx
mov edx, dword [ebx]
add edx, 0x12970
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c