Function at 0x11118a0
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 0x1111bb6
jmp 0x11118e2
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 0x1111ba3
cmp dword [esi + 8], ecx
jne 0x1111ba3
lea edi, [esi + 0x28]
cmp edi, ecx
je 0x1111ba3
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 0x111192e
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esi + 0x84]
xor ebx, ebx
test eax, eax
je 0x1111958
mov edx, dword [esi + 0x80]
xor ecx, ecx
test edx, edx
jbe 0x1111958
mov edi, dword [ebp - 0x14]
cmp dword [eax + 4], edi
je 0x111196f
add eax, dword [esi + 0x14]
inc ecx
cmp ecx, edx
jb 0x1111946
jmp 0x111195b
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1111971
cmp dword [eax + 4], edi
je 0x111196f
mov eax, dword [eax]
test eax, eax
jne 0x1111962
jmp 0x1111971
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test ebx, ebx
je 0x1111ba3
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1111ba3
cmp dword [eax + 0xa4], 0
je 0x11119a0
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0xa8], 0
je 0x11119b5
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
mov ecx, dword [0x117f00c]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push ecx
push eax
call fcn.010f3010
mov esi, eax
test esi, esi
je 0x11119fb
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.01106c50
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 0x1111a0b
mov dword [ebp - 0x18], 1
cmp dword [eax + 0x100b4], 0
je 0x1111b04
mov esi, dword [eax + 0x100b4]
test esi, esi
jne 0x1111a26
xor eax, eax
jmp 0x1111a3d
cmp word [esi], 0
mov eax, esi
je 0x1111a39
mov edi, edi
add eax, 2
cmp word [eax], 0
jne 0x1111a30
sub eax, esi
sar eax, 1
push eax
push 0x5c
push esi
call fcn.0102a9b0
test eax, eax
je 0x1111a4f
add eax, 2
jmp 0x1111a51
mov eax, esi
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x101f894
lea ecx, [ebp - 0x824]
push 0x3ff
push ecx
call fcn.0102aaf0
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 0x1111b04
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
lea ecx, [ebp - 0x824]
push ecx
add eax, 0x3c22
push 0x100b744
push eax
call fcn.0107e5b0
mov esi, eax
test esi, esi
je 0x1111af4
push esi
push 0x101f880
push 0x3ff
push edi
call fcn.0102aaf0
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.0107d5e0
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 0x1111b34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x1111b47
cmp dword [ecx + 0x58], 0
mov dword [ebp - 8], 0
je 0x1111b4e
mov dword [ebp - 8], 1
mov edx, dword [ecx + 0x54]
test edx, edx
je 0x1111b8f
mov edi, dword [ebp - 4]
push edx
test edi, edi
jne 0x1111b6e
call fcn.0102a730
push eax
push edx
call fcn.0102ab30
mov dword [ebp - 4], eax
jmp 0x1111b8f
push 0
push edi
call fcn.0107e5b0
mov esi, eax
test esi, esi
je 0x1111b8f
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 0x1111ba3
push eax
call fcn.010eb820
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 0x11118e0
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 0x1111c5c
cmp dword [ebp - 8], 0
mov dword [esi], edi
je 0x1111c34
push 0x10052cc
push 0x101f830
push esi
call fcn.01048b40
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x1111bfd
mov eax, 0x100f9bc
push eax
push 0x10051fc
push 0x100d310
push esi
call fcn.01048b40
mov eax, dword [esi + 0x5c]
add esp, 0x10
cmp eax, 2
jg 0x1111c1e
mov eax, 2
push 0x10052c4
push 0x100d304
push esi
mov dword [esi + 0x5c], eax
call fcn.01048b40
add esp, 0xc
push esi
call fcn.01048b90
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.010eb820
mov ecx, dword [ebx]
mov eax, 0x101f800
add eax, 2
cmp word [eax], 0
jne 0x1111c63
mov ecx, dword [ecx + 0x268]
sub eax, 0x101f800
push 0
sar eax, 1
lea edx, [ebp + 8]
push edx
add eax, eax
push eax
mov eax, dword [ebp + 0x10]
push 0x101f800
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