Function at 0x1011760
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1097284
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x68]
cmp dword [ebx], 0x43495041
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
jne 0x1012e78
mov eax, dword [ebx + 4]
mov edx, 0x10c
cmp eax, edx
jb 0x1012e78
cmp word [ebx + 0xe], dx
jne 0x1012e78
cmp word [ebx + 0xc], 0xffff
jne 0x1012e78
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x78]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 8]
cmp eax, 0x100
jg case.0x10117de.18
je 0x1012d6f
dec eax
cmp eax, 0x20
ja case.0x10117de.18
jmp dword [eax*4 + 0x1012e90]
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [ebp + 0x10], eax
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 8]
mov eax, dword [ecx]
push 0xffffffffffffffff
mov dword [esp + 0x78], 0x114
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x101184f
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x10118cc
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0xc]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10118be
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x10118b6
mov esi, eax
lea edi, [ebp + 0x18]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0108e495
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edi + 0x1c]
call fcn.01089b69
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x1012da9
mov dword [ebp + 0x18], 9
mov dword [ebp + 0x25], 0x12
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
call fcn.0103b890
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1011954
cmp eax, edx
jne case.0x10117de.18
mov ebp, dword [ebx + 0x14]
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x1011a80
push ebp
call fcn.0108e46c
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x78], edi
je case.0x10117de.18
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x30], eax
je 0x1012b06
mov eax, dword [esi + 8]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10119f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10119f5
cmp eax, 0xea
je 0x10119f5
push edi
mov dword [esi + 0x10], 0
call fcn.0108e495
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esp + 0x30]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1011a26
push edi
mov dword [esi + 0x10], 0
call fcn.0108e495
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov eax, dword [esi + 8]
push 0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1011a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1011a53
cmp dword [esp + 0x74], ebp
je 0x1011a73
push edi
mov dword [esi + 0x10], 0
call fcn.0108e495
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1011a84
mov edi, dword [esp + 0x78]
push 0x114
mov dword [esp + 0x78], 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1012b06
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103b940
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x84]
push eax
mov dword [ebp + 0x10], 0
call fcn.0108e495
add esp, 0x10
jmp 0x1012da9
xor eax, eax
mov ecx, 6
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x1011b0c
cmp eax, edx
je 0x1011b0c
mov dword [esi + 0x10], ebp
jmp 0x1012e78
mov ecx, dword [ebx + 0x3c]
cmp ecx, ebp
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x34], eax
je 0x1011b2c
lea edx, [eax + 0x10c]
cmp ecx, edx
je 0x1011b2c
mov dword [esi + 0x10], ebp
jmp 0x1012e78
mov edx, dword [ebx + 0x44]
cmp edx, ebp
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x38], ecx
je 0x1011b4d
lea edi, [ecx + eax + 0x10c]
cmp edx, edi
je 0x1011b4d
mov dword [esi + 0x10], ebp
jmp 0x1012e78
mov edi, dword [ebx + 0x4c]
cmp edi, ebp
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x3c], edx
je 0x1011b6d
lea ebp, [edx + ecx]
lea ebp, [eax + ebp + 0x10c]
cmp edi, ebp
jne case.0x10117de.18
mov edi, dword [ebx + 0x54]
test edi, edi
mov ebp, dword [ebx + 0x48]
mov dword [esp + 0x40], ebp
je 0x1011b92
add ebp, edx
add ebp, ecx
lea ebp, [eax + ebp + 0x10c]
cmp edi, ebp
jne case.0x10117de.18
mov ebp, dword [esp + 0x40]
cmp dword [ebx + 0x5c], 0
mov edi, dword [ebx + 0x50]
mov dword [esp + 0x44], edi
je 0x1011bbb
add edi, ebp
mov ebp, dword [ebx + 0x5c]
add edi, edx
add edi, ecx
lea edi, [edi + eax + 0x10c]
cmp ebp, edi
jne case.0x10117de.18
mov edi, dword [esp + 0x44]
mov ebp, dword [ebx + 0x60]
mov dword [esp + 0x48], ebp
add ebp, edi
mov edi, dword [esp + 0x40]
add ebp, edi
add ebp, edx
add ebp, ecx
lea ebp, [eax + ebp + 0x10c]
cmp dword [ebx + 4], ebp
jne case.0x10117de.18
test eax, eax
jne 0x1011c02
test ecx, ecx
jne 0x1011c02
test edx, edx
jne 0x1011c02
test edi, edi
jne 0x1011c02
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x1011c02
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1011cef
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x30], eax
je case.0x10117de.18
xor ebp, ebp
mov edi, dword [esp + ebp + 0x34]
test edi, edi
je 0x1011cd8
push edi
call fcn.0108e46c
add esp, 4
test eax, eax
mov dword [esp + ebp + 0x4c], eax
je 0x1011d33
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x7c]
push edx
push edi
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1011c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1011c84
cmp eax, 0xea
jne 0x1011d68
mov ecx, dword [esp + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1011d9d
mov ecx, dword [esi + 8]
push eax
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1011cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1011dd2
cmp dword [esp + 0x78], edi
jne 0x1011dd2
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
add ebp, 4
cmp ebp, 0x18
jb 0x1011c31
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], dl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1011e07
mov dword [esi + 0x10], eax
lea esi, [esp + 0x4c]
mov edi, 6
mov eax, dword [esi]
test eax, eax
je 0x1011d28
push eax
call fcn.0108e495
add esp, 4
add esi, 4
dec edi
jne 0x1011d19
jmp 0x1012e78
mov eax, dword [esp + 0x30]
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x4c]
mov edi, 6
mov eax, dword [esi]
test eax, eax
je 0x1011d5d
push eax
call fcn.0108e495
add esp, 4
add esi, 4
dec edi
jne 0x1011d4e
jmp 0x1012e78
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x4c]
mov edi, 6
mov eax, dword [esi]
test eax, eax
je 0x1011d92
push eax
call fcn.0108e495
add esp, 4
add esi, 4
dec edi
jne 0x1011d83
jmp 0x1012e78
mov edx, dword [esp + 0x30]
push edx
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x4c]
mov edi, 6
mov eax, dword [esi]
test eax, eax
je 0x1011dc7
push eax
call fcn.0108e495
add esp, 4
add esi, 4
dec edi
jne 0x1011db8
jmp 0x1012e78
mov eax, dword [esp + 0x30]
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x4c]
mov edi, 6
mov eax, dword [esi]
test eax, eax
je 0x1011dfc
push eax
call fcn.0108e495
add esp, 4
add esi, 4
dec edi
jne 0x1011ded
jmp 0x1012e78
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1011efe
cmp al, 0x5a
ja 0x1011efe
push 8
call fcn.0108e46c
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x6c], edi
je 0x1011e52
push edi
push edi
push edi
mov ecx, eax
call fcn.0103e45a
jmp 0x1011e54
xor eax, eax
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x18], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x30]
push ecx
mov ecx, dword [ebx + 0x2c]
push edx
mov edx, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x20]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [esi]
push esi
push 0x100f170
push edx
push eax
push ecx
mov dword [esp + 0xc0], 0xffffffff
call fcn.0103b960
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
add esp, 0x54
push 0xffffffffffffffff
call dword [edx + 0xc]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
je 0x1011eed
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1c], edi
mov dword [ebp + 0x18], edi
mov ecx, dword [ebx + 0x1c]
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x10], edi
jmp 0x1011f05
mov dword [ebp + 0x10], 1
lea edi, [esp + 0x4c]
mov dword [esp + 0x78], 6
mov eax, dword [edi]
test eax, eax
je 0x1011f20
push eax
call fcn.0108e495
add esp, 4
mov eax, dword [esp + 0x78]
add edi, 4
dec eax
mov dword [esp + 0x78], eax
jne 0x1011f11
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov dl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], dl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [ebx + 0x30]
push edx
mov edx, dword [ebx + 0x2c]
lea edi, [ebx + 0x28]
push edi
push edx
mov edx, dword [esi]
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebx + 0x20]
push ecx
mov ecx, dword [esp + 0x8c]
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x14]
push eax
push ecx
push edx
call fcn.0103bb70
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x18], eax
mov ecx, dword [ebx + 0x1c]
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebx + 0x20]
mov dword [ebp + 0x20], edx
mov eax, dword [ebx + 0x24]
mov dword [ebp + 0x24], eax
mov ecx, dword [edi]
add esp, 0x28
mov dword [ebp + 0x28], ecx
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov edx, dword [esi]
push edx
mov dword [esp + 0x78], 0x114
call fcn.0103bc50
add esp, 4
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
lea edi, [ebx + 0x14]
push edi
push ecx
push edx
call fcn.0103bce0
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp + 0x18], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
push edx
push eax
call fcn.0103bdc0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov eax, dword [esp + 0x78]
mov ecx, dword [esi]
lea edx, [ebp + 0x18]
push edx
push eax
push ecx
call fcn.0103cd00
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
lea edx, [ebp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x7c], 0x114
call fcn.0103cdc0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
push edx
push eax
call fcn.0103ca80
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
push 8
call fcn.0108e46c
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x6c], 1
je 0x1012284
push edi
push edi
push edi
mov ecx, eax
call fcn.0103e45a
jmp 0x1012286
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x1c], eax
mov edx, dword [ebx + 0x18]
push esi
mov dword [esi + 0x18], edx
mov eax, dword [ebx + 0x14]
mov edx, dword [esi]
push 0x100f170
push eax
push ecx
push edx
mov dword [esp + 0x80], 0xffffffff
call fcn.0103be90
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
add esp, 0x14
push 0xffffffffffffffff
call dword [eax + 0xc]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
je 0x10122cf
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x1c], edi
mov dword [ebp + 0x18], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x10], edi
jmp 0x1012da9
mov eax, dword [ebx + 0x18]
xor ebp, ebp
cmp eax, ebp
jne 0x10122f7
xor edi, edi
mov dword [esp + 0x10], edi
jmp 0x1012433
cmp eax, edx
jb 0x10129da
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
add eax, ecx
cmp eax, edx
jne 0x10129da
push ecx
call fcn.0108e46c
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x101232a
mov dword [esi + 0x10], ebp
jmp 0x1012e78
xor ecx, ecx
mov dword [esp + 0x20], ecx
push ebp
mov dword [esp + 0x28], ecx
push ebp
mov dword [esp + 0x30], ecx
push 1
mov dword [esp + 0x38], ecx
push ebp
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebp
mov dword [esp + 0x30], eax
jne 0x1012364
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
add esp, 4
jmp 0x1012e78
mov ecx, dword [ebx + 0x14]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x10123b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10123b1
cmp eax, 0xea
je 0x10123b1
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov ecx, dword [esp + 0x30]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10123dd
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esi + 8]
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1012403
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x101240c
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x14]
je 0x1012428
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
add eax, 0x114
push eax
mov dword [esp + 0x78], eax
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1012b06
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push esi
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0103c060
mov dword [ebp + 0xc], eax
mov ecx, dword [ebx + 0x14]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x114]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x20]
push ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0x114
mov dword [ebp + 0x10], 0
call fcn.0108e495
mov esi, dword [esp + 0x8c]
add esp, 0x14
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov edx, dword [esi]
lea edi, [ebx + 0x14]
lea eax, [ebx + 0x10]
push edi
push eax
push edx
mov dword [esp + 0x80], 0x114
call fcn.0103c0e0
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x18], eax
mov ecx, dword [edi]
add esp, 0xc
mov dword [ebp + 0x1c], ecx
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [ebp + 0x10], eax
mov edx, dword [esi + 0x14]
push 0xfb
mov dword [esp + 0x78], 0x114
mov dword [esp + 0x7c], edx
call fcn.0108e46c
mov edx, eax
add esp, 4
test edx, edx
je 0x1012da9
xor eax, eax
mov edi, edx
mov ecx, 0x3e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x78]
mov dword [edx], 9
mov dword [edx + 0xd], 0x12
mov ecx, dword [eax + 0x1c]
push edx
call fcn.01089b40
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 0x1c]
cmp dword [ecx + 0xc], 0x64
jle 0x10125b2
call fcn.01089b69
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103c1e0
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
lea edi, [ebx + 0x14]
push edi
push ecx
push edx
call fcn.0103c2a0
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp + 0x18], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
push edx
push eax
call fcn.0103c360
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
mov edx, dword [ebx + 0x14]
push 0x114
mov byte [esp + 0x7c], cl
mov dword [esp + 0x18], edx
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103c420
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
call fcn.0103c4f0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x18], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x14]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
lea esi, [ebx + 0x11]
push esi
push ecx
push eax
call fcn.0103c5b0
mov dword [ebp + 0xc], eax
lea edi, [ebp + 0x18]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x84]
add esp, 0xc
mov dword [ebp + 0x10], 0
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x78]
mov ecx, dword [esi]
push edx
push eax
push ecx
call fcn.0103c6d0
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov dl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], dl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103c6d0
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
call fcn.0103c910
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
mov eax, dword [ebx + 0x14]
xor ebp, ebp
cmp eax, ebp
jne 0x10129b7
xor edi, edi
mov dword [esp + 0x78], edi
jmp 0x1012aeb
cmp eax, edx
jb 0x10129da
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 4]
add eax, ecx
cmp eax, edx
jne 0x10129da
push ecx
call fcn.0108e46c
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x78], edi
jne 0x10129e2
mov dword [esi + 0x10], ebp
jmp 0x1012e78
xor ecx, ecx
mov dword [esp + 0x20], ecx
push ebp
mov dword [esp + 0x28], ecx
push ebp
mov dword [esp + 0x30], ecx
push 1
mov dword [esp + 0x38], ecx
push ebp
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebp
mov dword [esp + 0x30], eax
jne 0x1012a1c
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
add esp, 4
jmp 0x1012e78
mov ecx, dword [ebx + 0x18]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x78]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x1012a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1012a69
cmp eax, 0xea
je 0x1012a69
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov ecx, dword [esp + 0x30]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1012a95
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esi + 8]
push ebp
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1012abb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1012ac4
mov eax, dword [esp + 0x74]
cmp eax, dword [ebx + 0x18]
je 0x1012ae0
push edi
mov dword [esi + 0x10], ebp
call fcn.0108e495
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012e78
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x114
mov dword [esp + 0x78], 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1012b1b
push edi
mov dword [esi + 0x10], 0
call fcn.0108e495
add esp, 4
jmp 0x1012e78
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103bcc0
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x84]
push eax
mov dword [ebp + 0x10], 0
call fcn.0108e495
add esp, 0x10
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
push edx
push eax
call fcn.0103c9c0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov cl, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], cl
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x78]
cmp al, 0x41
mov dword [esp + 0x74], 0x114
jb 0x1012c1e
cmp al, 0x5a
ja 0x1012c1e
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x78]
lea edx, [ebp + 0x18]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0103cc50
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x1012da2
mov dword [ebp + 0x10], 1
jmp 0x1012da9
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov eax, dword [ebx + 0x10]
push 0x114
mov dword [esp + 0x7c], eax
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0x7c], 0x114
call fcn.0103ce40
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov eax, dword [ebx + 0x10]
push 0x114
mov dword [esp + 0x7c], eax
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0x7c], 0x114
call fcn.0103cec0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0x7c], 0x114
call fcn.0103cf40
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
mov al, byte [ebx + 0x10]
push 0x114
mov byte [esp + 0x7c], al
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
xor eax, eax
mov ecx, 0x45
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0x7c], 0x114
call fcn.0103cfc0
add esp, 8
mov dword [ebp + 0xc], eax
jmp 0x1012da2
cmp dword [ebx + 4], edx
jne case.0x10117de.18
push 0x114
call fcn.0108e46c
mov ebp, eax
add esp, 4
test ebp, ebp
je case.0x10117de.18
mov ecx, 0x45
xor eax, eax
mov edi, ebp
mov dword [esp + 0x74], 0x114
rep stosd dword es:[edi], eax
mov dword [ebp + 0x10], 0
mov edi, dword [esp + 0x74]
cmp edi, 0x114
jb 0x1012e68
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
push ecx
push ecx
mov dword [ebp], 0x52495041
mov dword [ebp + 4], edi
mov eax, dword [ebx + 8]
push 1
push ecx
mov dword [ebp + 8], eax
mov word [ebp + 0x16], 0x114
mov word [ebp + 0x14], 0xffff
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x1012e1c
cmp dword [esp + 0x10], edi
je 0x1012e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1012e3a
cmp eax, 0x3e5
jne 0x1012e3a
mov edx, dword [esp + 0x44]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push ebp
mov dword [esp + 0x48], edi
call fcn.0108e495
mov eax, dword [esi + 0x10]
add esp, 4
cmp eax, 0x100
je 0x1012e61
mov dword [esi + 0x10], edi
mov eax, 1
jmp 0x1012e7a
push ebp
call fcn.0108e495
add esp, 4
mov dword [esi + 0x10], 0
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8