Function at 0x102201f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8fc
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x14
mov dword [ebp - 0x8ac], eax
pop eax
mov dword [ebp - 0x8c4], eax
lea eax, [ebp - 0x89c]
push eax
mov edi, 0x10052c8
mov dword [ebp - 0x8d4], 0x13
mov dword [ebp - 0x8cc], TlsFree
call fcn.0101f727
lea eax, [ebp - 0x8a8]
push eax
call fcn.0101f727
lea eax, [ebp - 0x8c0]
push eax
call fcn.0101f727
cmp dword [ebp + 0x14], 0
mov eax, dword [esi + 8]
mov dword [ebp - 0x890], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x88c], eax
mov dword [ebp - 0x888], 0x10052b8
jne 0x1021f0e
mov dword [ebp - 0x888], 0x10052a8
cmp dword [ebp + 0x14], 0
mov ebx, 0x400
jne 0x1021fb0
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx + 0xc]
jae 0x1021f5e
inc eax
push eax
push dword [ebp - 0x888]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0100c705
lea eax, [ebp - 0x84]
push eax
push 0x1005248
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0x20
jmp 0x1021f67
xor eax, eax
mov word [ebp - 0x484], ax
lea edx, [ebp - 0x484]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x8b0], ecx
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1021f78
sub eax, dword [ebp - 0x8b0]
push 1
sar eax, 1
push eax
push edx
push 0x14
pop eax
push eax
push edi
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa20
mov edi, eax
test edi, edi
jne 0x10224f3
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx + 0xc]
jae 0x1022025
cmp dword [ebp + 0x14], 0
push eax
lea eax, [ebp - 0x84]
je 0x1021fe8
push 0x10052a8
push 0x80
push eax
call fcn.0100c705
lea eax, [esi + 0x658]
push eax
lea ecx, [ebp - 0x84]
push ecx
push eax
jmp 0x1022059
push 0x10052b8
push 0x80
push eax
call fcn.0100c705
lea eax, [esi + 0x590]
push eax
lea ecx, [ebp - 0x84]
push ecx
push eax
lea eax, [esi + 0x400]
push eax
push 0x1005198
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0x2c
jmp 0x102206e
cmp dword [ebp + 0x14], 0
lea edi, [esi + 0x720]
jne 0x1022037
lea edi, [esi + 0x4c8]
push 1
push dword [ebp - 0x888]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0100c705
push edi
lea eax, [ebp - 0x84]
push eax
push edi
push 0x1005138
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0x28
lea edx, [ebp - 0x484]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1022079
push 1
sub eax, edi
sar eax, 1
push eax
push edx
push 0x13
pop eax
push eax
mov eax, 0x100510c
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa20
mov edi, eax
test edi, edi
jne 0x10224f3
mov eax, dword [ebp + 0x10]
cmp eax, 1
jbe 0x10220f1
dec eax
push eax
push dword [ebp - 0x888]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0100c705
lea eax, [ebp - 0x84]
push eax
push 0x10050b0
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0x20
jmp 0x1022106
push 0x1005078
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0xc
lea edx, [ebp - 0x484]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1022111
push 1
sub eax, edi
sar eax, 1
push eax
push edx
push 0x17
pop eax
push eax
mov eax, 0x1005048
push eax
push 0x19
pop eax
push eax
mov eax, 0x1005014
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa8c
mov edi, eax
test edi, edi
jne 0x10224f3
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx + 0xc]
jae 0x1022195
inc eax
push eax
push dword [ebp - 0x888]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0100c705
lea eax, [ebp - 0x84]
push eax
push 0x1004fc0
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0x20
jmp 0x10221aa
push 0x1005078
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
add esp, 0xc
lea edx, [ebp - 0x484]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10221b5
push 1
sub eax, edi
sar eax, 1
push eax
push edx
push dword [ebp - 0x8d4]
mov eax, 0x1004f94
push eax
push 0x15
pop eax
push eax
mov eax, 0x1004f68
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa8c
mov edi, eax
test edi, edi
jne 0x10224f3
push dword [ebp + 0x10]
lea eax, [ebp - 0x484]
push 0x1001d7c
push ebx
push eax
call fcn.0101d67b
lea ecx, [ebp - 0x484]
mov eax, ecx
add esp, 0x10
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x102221d
sub eax, edx
push 1
sar eax, 1
push eax
push ecx
push dword [ebp - 0x8cc]
mov eax, 0x100474c
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa20
mov edi, eax
test edi, edi
jne 0x10224f3
push 1
push eax
mov eax, 0x1001920
push eax
push 0x1d
pop eax
push eax
mov eax, 0x10046b0
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa20
mov edi, eax
test edi, edi
jne 0x10224f3
mov eax, dword [ebp - 0x8ac]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x89c]
push eax
call fcn.0101f94e
mov edi, eax
test edi, edi
jne 0x10224f3
mov eax, dword [ebp - 0x8ac]
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x8c]
mov edi, dword [eax + 0x90]
mov dword [ebp - 0x8b4], ecx
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x1022335
cmp edx, 0x64
jle 0x1022335
cmp edx, edi
lea eax, [ebp - 0x884]
jge 0x10222e3
push edi
push 0x1004f18
jmp 0x10222e9
push edx
push 0x1004ec8
push ebx
push eax
call fcn.0101d67b
add esp, 0x10
push dword [ebp - 0x8b4]
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x8b4]
lea eax, [ebp - 0x484]
push 0x1004e20
push ebx
push eax
call fcn.0101d67b
lea ecx, [ebp - 0x484]
mov eax, ecx
add esp, 0x18
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x1022326
jmp 0x102241d
mov ecx, dword [esi]
cmp dword [ecx + 0x38], 0
je 0x10223ec
lea ecx, [ebp - 0x8c0]
push ecx
push 0x2f8
push eax
push esi
call fcn.01020797
mov edi, eax
test edi, edi
jne 0x10224f3
lea eax, [ebp - 0x8a8]
push eax
call fcn.0101f76f
lea eax, [esi + 0xbd0]
push eax
lea eax, [esi + 0x8b0]
push eax
push 0x1004c78
push dword [ebp - 0x8a4]
lea eax, [ebp - 0x8a8]
push eax
call fcn.0102049d
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10224f3
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x8a8]
push dword [ebp - 0x8c0]
push eax
call fcn.0101f8c8
mov edi, eax
test edi, edi
jne 0x10224f3
push 0x12
pop ecx
push ecx
mov eax, 0x1004c50
push eax
lea eax, [ebp - 0x8a8]
push eax
call fcn.0101f8c8
mov edi, eax
test edi, edi
jne 0x10224f3
mov ecx, dword [ebp - 0x8a8]
mov eax, dword [ebp - 0x8a4]
jmp 0x1022421
lea eax, [esi + 0x8b0]
push eax
push 0x1004be0
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.0101d67b
lea ecx, [ebp - 0x484]
mov eax, ecx
add esp, 0x10
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x1022413
sub eax, edx
sar eax, 1
xor ebx, ebx
inc ebx
push ebx
push eax
push ecx
push dword [ebp - 0x8c4]
mov eax, 0x1004bb4
push eax
push 0x16
pop eax
push eax
mov eax, 0x1004b84
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x89c]
push eax
call fcn.0101fa8c
mov edi, eax
test edi, edi
jne 0x10224f3
push dword [ebp - 0x88c]
lea eax, [ebp - 0x89c]
push dword [ebp - 0x890]
push eax
call fcn.0101f8c8
mov edi, eax
test edi, edi
jne 0x10224f3
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push dword [ebp - 0x888]
push 0x80
push eax
call fcn.0100c705
add esp, 0x10
xor eax, eax
push 9
pop ecx
lea edi, [ebp - 0x8fc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x8f0], eax
mov eax, dword [ebp - 0x898]
add eax, eax
mov dword [ebp - 0x8ec], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8f4], eax
lea eax, [ebp - 0x8fc]
push eax
push dword [esi + 4]
mov dword [ebp - 0x8f8], 0x1004460
mov dword [ebp - 0x8e4], ebx
mov dword [ebp - 0x8e0], ebx
call fcn.01020034
mov edi, eax
test edi, edi
jne 0x10224f3
lea eax, [ebp - 0x89c]
push eax
call fcn.0101f747
lea eax, [ebp - 0x8a8]
push eax
call fcn.0101f747
lea eax, [ebp - 0x8c0]
push eax
call fcn.0101f747
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0x10