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

Disassembly:
sub esp, 0xf0
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xfc]
push ebx
push ebp
mov ebp, dword [esp + 0xfc]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x100]
mul dword [ebp + 0x104]
push esi
push edi
xor edi, edi
push edi
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x198]
push ecx
push edx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0xb8], edi
call sub.ntdll.dll__allmul
mov ecx, dword [ebp + 0x108]
push edi
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [ebp + 0x114]
cmp ecx, edx
mov esi, dword [ebp + 0x110]
jb 0x1000aba5
ja 0x1000ab9b
cmp esi, eax
jbe 0x1000aba5
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ecx
jmp 0x1000abad
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0x144]
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push 0x160
mov dword [esp + 0x28], edx
call esi
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x1000abd5
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x160
push edi
push ebx
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x30]
add esp, 0xc
push eax
mov eax, ebx
call fcn.10003220
add esp, 4
push 0x2000
call esi
add esp, 4
cmp eax, edi
mov dword [esp + 0x84], eax
jne 0x1000ac10
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x2000
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x400000
call esi
add esp, 4
cmp eax, edi
mov dword [esp + 0x4c], eax
jne 0x1000ac39
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x400000
push edi
push eax
call sub.ntdll.dll_memset
xor eax, eax
mov dword [esp + 0xac], eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ebx
mov dword [0x100e8a90], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.1002c470
mov dword [esp + 0x7c], eax
call fcn.1000d2d0
mov esi, dword [ebp + 0x118]
mov dword [esp + 0x3c], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1000acc3
sub eax, ecx
lea ecx, [esi + eax - 1]
push ecx
call dword [sym.imp.ntdll.dll_atoi]
xor ecx, ecx
add esp, 4
push eax
lea edx, [esp + 0xe0]
push str..PhysicalDrive_d
push edx
mov dword [esp + 0x84], eax
mov byte [esp + 0xe8], 0
mov dword [esp + 0xe9], ecx
mov dword [esp + 0xed], ecx
mov dword [esp + 0xf1], ecx
mov dword [esp + 0xf5], ecx
mov dword [esp + 0xf9], ecx
mov dword [esp + 0xfd], ecx
mov dword [esp + 0x101], ecx
mov byte [esp + 0x105], cl
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
cmp dword [0x100e8a94], edi
je 0x1000ad6e
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ebx
call esi
mov eax, dword [esp + 0x88]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x50]
add esp, 4
push ecx
call esi
add esp, 4
xor eax, eax
jmp 0x1000bb0f
push edi
push edi
push 3
push edi
push 3
push 3
lea edx, [esp + 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x154]
ja 0x1000b8ba
jb 0x1000adab
cmp edi, dword [ebp + 0x150]
jae 0x1000b8ba
cmp dword [0x100e8a90], 0
jne 0x1000b8ba
cmp dword [0x100e8a94], 0
jne 0x1000b8ba
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
mov dword [esp + 0x28], 0
jbe 0x1000addf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 8]
cmp dword [ecx + 4], eax
mov dword [esp + 0x24], eax
jbe 0x1000adf9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
cmp esi, eax
je 0x1000aeb4
mov ecx, dword [esp + 0x54]
cmp esi, dword [ecx + 8]
jb 0x1000ae10
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
push edi
mov dword [esp + 0xd0], edx
mov edx, dword [ebp + 0x198]
push 0
push edx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], ecx
call sub.ntdll.dll__allmul
cmp dword [esp + 0x1c], edx
jb 0x1000ae5b
ja 0x1000ae4e
cmp dword [esp + 0x18], eax
jb 0x1000ae5b
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x80]
je 0x1000ae7b
mov ecx, dword [esp + 0x54]
cmp esi, dword [ecx + 8]
jb 0x1000ae6a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x18]
add esi, 0x10
add dword [esp + 0x28], 1
jmp 0x1000addf
add dword [esp + 0x80], 1
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ebp + 0x198]
add eax, edi
adc ecx, dword [esp + 0xc4]
push 0
push edx
push ecx
push eax
call sub.ntdll.dll__allmul
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edi, eax
mov eax, dword [ebp + 0x198]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edi
call sub.ntdll.dll__aulldiv
mov ecx, dword [ebp + 0x108]
push 0
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
mov ecx, dword [ebp + 0x104]
push 0
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
mov ecx, dword [ebp + 0x100]
mov esi, eax
mov edx, 0x64
mul edx
push 0
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x14], eax
je 0x1000afa2
cmp dword [esp + 0xa4], esi
je 0x1000afa2
cmp dword [ebp + 0x104], 1
ja 0x1000af2e
test esi, 0x7fff
jne 0x1000afa2
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x14]
xor eax, eax
push eax
mov dword [esp + 0xa8], esi
mov esi, dword [ebp + 0x198]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x68]
push esi
push eax
push ecx
mov dword [esp + 0x98], edx
call sub.ntdll.dll__aulldiv
mov dword [esp + 0x90], eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x98], edx
mov edx, dword [ebp + 0x154]
push esi
push edx
push eax
call sub.ntdll.dll__aulldiv
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
call dword [esp + 0x70]
add esp, 4
cmp dword [esp + 0x14], 0x64
jae 0x1000b8ba
cmp dword [0x100e8a90], 0
jne 0x1000bab1
cmp dword [0x100e8a94], 0
jne 0x1000bab1
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0xf0], edi
mov dword [ebx + 0xf4], edx
mov esi, dword [ebp + 0x198]
shl esi, 0xd
xor eax, eax
mov ecx, esi
add ecx, edi
adc eax, edx
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x24], esi
jb 0x1000b02e
ja 0x1000b00a
cmp ecx, dword [esp + 0x58]
jbe 0x1000b02e
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x198]
sub edx, edi
sbb ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edx
call sub.ntdll.dll__aullrem
mov esi, eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x4c]
push 0x400000
push 0
push edx
mov dword [esp + 0xb8], 0
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea ecx, [esp + 0xc0]
push ecx
push edi
push edx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xb0]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ad8d
cmp dword [esp + 0xac], esi
jne 0x1000ad8d
mov ecx, dword [ebp + 0x198]
lea eax, [ecx*4]
mov edx, esi
sub edx, eax
add edi, edx
mov eax, 0
adc dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
xor edx, edx
mov eax, esi
div ecx
mov dword [esp + 0x18], edi
test eax, eax
jbe 0x1000ad8d
mov eax, dword [esp + 0x4c]
add eax, 0x1c
mov dword [esp + 0x30], eax
xor ecx, ecx
cmp ecx, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
sbb eax, eax
and eax, 0x200
cdq
add ecx, eax
mov eax, dword [esp + 0x64]
adc eax, edx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
jg 0x1000b147
mov edi, dword [esp + 0x30]
add edi, 0xffffffe4
push ebp
push edi
call section..text
add esp, 8
test eax, eax
mov dword [esp + 0x50], eax
jg 0x1000b147
cmp dword [esp + 0x28], 0x1ffc
jae 0x1000b147
mov esi, ebx
mov eax, edi
call fcn.10001270
mov dword [esp + 0x50], eax
cmp dword [0x100e8a90], 0
jne 0x1000bab1
cmp dword [0x100e8a94], 0
jne 0x1000bab1
xor edi, edi
cmp dword [esp + 0x50], edi
jle 0x1000b828
mov eax, dword [ebx + 0x14c]
cmp eax, 9
mov dword [esp + 0x50], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], 1
jl 0x1000b739
cmp eax, 0xb
jle 0x1000b47d
cmp eax, 0x1d
jne 0x1000b739
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x198]
mov esi, dword [esp + 0x7c]
add eax, 0xffffffe4
push eax
push edi
push edx
mov edx, dword [ebx + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xf4]
push eax
push edx
mov dword [esp + 0x28], edi
call sub.ntdll.dll__aulldiv
push edx
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
call edx
test eax, eax
mov dword [esp + 0x38], eax
jne 0x1000b739
mov edi, dword [ebp + 0x198]
call fcn.100012f0
cmp dword [esp + 0x10], 0xffffffff
mov esi, eax
mov dword [esp + 0x2c], esi
jne 0x1000b210
push esi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov eax, dword [ebp + 0x198]
push ecx
push edx
push 0
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [ebx + 0xf0]
sub ecx, eax
mov eax, dword [ebx + 0xf4]
sbb eax, edx
push 0
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x80], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x70], eax
jne 0x1000b277
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000b277
push esi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov edx, dword [ebp + 0x198]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0xb8]
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000b2a4
push esi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x198]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x1000b2ec
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
mov ecx, dword [ebx + 0xf0]
sub ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
sbb edx, dword [ebx + 0xfc]
mov esi, dword [ebp + 0x198]
push 0
push esi
push edx
push ecx
mov dword [esp + 0x34], eax
call sub.ntdll.dll__aulldiv
mov ecx, dword [esp + 0x80]
add eax, 1
adc edx, 0
push edx
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x40]
call edx
test eax, eax
mov dword [esp + 0x38], eax
je 0x1000b432
mov eax, dword [ebp + 0x198]
mov esi, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xfc]
xor ecx, ecx
push ecx
push eax
sub esi, eax
mov eax, dword [edi + 0x10]
sbb edx, ecx
mov ecx, dword [edi + 0xc]
push eax
push ecx
mov dword [esp + 0xe4], edx
call sub.ntdll.dll__allmul
cmp eax, esi
jne 0x1000b42a
cmp edx, dword [esp + 0xd4]
jne 0x1000b42a
mov eax, dword [ebx + 0xf4]
mov edx, dword [ebx + 0xf0]
mov ecx, dword [ebx + 0xf8]
mov esi, dword [esp + 0x74]
mov dword [ebx + 0x10c], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x108], edx
mov dword [ebx + 0x110], ecx
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], esi
mov edi, dword [edi]
cmp edi, dword [ebp + 0x108]
jne 0x1000b3fc
mov edx, dword [ebp + 0x198]
push 0
push edx
push esi
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
cmp edi, eax
jne 0x1000b3ec
cmp ecx, edx
je 0x1000b3f8
mov dword [ebx + 0x150], 3
jmp 0x1000b432
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 0x198]
push 0
push ecx
push esi
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
cmp eax, edi
jne 0x1000b422
cmp edx, ecx
jne 0x1000b422
mov dword [ebx + 0x150], 1
jmp 0x1000b432
mov dword [ebx + 0x150], ecx
jmp 0x1000b432
mov dword [esp + 0x38], 0
cmp dword [esp + 0x2c], 0
je 0x1000b739
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
push 0
lea edx, [esp + 0x78]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x198]
mov edi, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0xb8]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0xf4]
mov esi, dword [esp + 0x3c]
add eax, 0xffffffe4
push eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x198]
push edi
push eax
mov eax, dword [ebx + 0xf0]
push edx
push eax
mov dword [esp + 0x28], edi
call sub.ntdll.dll__aulldiv
mov ecx, dword [esp + 0x7c]
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
push ecx
mov ecx, esi
call edx
test eax, eax
mov dword [esp + 0x38], eax
jne 0x1000b709
mov edi, dword [ebp + 0x198]
call fcn.100012f0
mov esi, dword [esp + 0x10]
mov edi, eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
jne 0x1000b4f8
push edi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov eax, dword [ebp + 0x198]
lea eax, [eax + eax*2]
add eax, eax
mov ecx, eax
mov eax, dword [ebx + 0xf0]
xor edx, edx
sub eax, ecx
mov ecx, dword [ebx + 0xf4]
push edx
sbb ecx, edx
lea edx, [esp + 0x48]
push edx
push eax
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
jne 0x1000b54c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000b54c
push edi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov ecx, dword [ebp + 0x198]
push 0
lea eax, [esp + 0xb4]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000b575
push edi
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x48]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x198]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xb4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x1000b5b5
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x1000b736
mov eax, dword [ebp + 0x198]
mov ecx, dword [esp + 0x40]
mov esi, dword [ecx]
mov edi, dword [ebx + 0xf0]
lea edx, [eax + eax*2]
add edx, edx
xor ecx, ecx
sub edi, edx
mov edx, dword [ebx + 0xf4]
push ecx
push eax
sbb edx, ecx
push edx
push edi
call sub.ntdll.dll__aulldiv
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esp + 0x84]
push eax
call edx
test eax, eax
mov dword [esp + 0x38], eax
je 0x1000b6c7
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mul dword [ebp + 0x198]
cmp eax, dword [ebx + 0xf8]
jne 0x1000b6bf
cmp edx, dword [ebx + 0xfc]
jne 0x1000b6bf
mov eax, dword [ebx + 0xf0]
mov edx, dword [ebx + 0xf4]
mov edi, dword [esp + 0x44]
mov dword [ebx + 0x108], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x110], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10c], edx
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], edi
mov esi, dword [ecx]
cmp esi, dword [ebp + 0x108]
jne 0x1000b691
mov ecx, dword [ebp + 0x198]
push 0
push ecx
push edi
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
cmp esi, eax
jne 0x1000b681
cmp ecx, edx
je 0x1000b68d
mov dword [ebx + 0x150], 3
jmp 0x1000b6c7
mov eax, dword [esp + 0x40]
mov edx, dword [ebp + 0x198]
push 0
push edx
push edi
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
cmp eax, esi
jne 0x1000b6b7
cmp edx, ecx
jne 0x1000b6b7
mov dword [ebx + 0x150], 1
jmp 0x1000b6c7
mov dword [ebx + 0x150], ecx
jmp 0x1000b6c7
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1000b709
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x48]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x198]
push 0
lea edx, [esp + 0xb4]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [ebp + 0x144], 0x100ddb50
jne 0x1000b721
mov dword [ebx + 0x150], 1
jmp 0x1000b739
cmp dword [ebx + 0x150], 0
jne 0x1000b739
mov eax, dword [esp + 0x34]
push ebx
mov esi, ebp
call fcn.1000a850
add esp, 4
cmp dword [ebp + 0x144], 0x100ddb50
jne 0x1000b751
mov dword [ebx + 0x150], 1
jmp 0x1000b769
cmp dword [ebx + 0x150], 0
jne 0x1000b769
mov eax, dword [esp + 0x34]
push ebx
mov esi, ebp
call fcn.1000a850
add esp, 4
xor edi, edi
cmp dword [esp + 0x38], edi
jne 0x1000b77b
cmp dword [esp + 0x14], edi
je 0x1000b828
mov ecx, dword [ebp + 0x144]
mov edx, dword [ecx + 0x44]
push ebx
call edx
add esp, 4
test eax, eax
je 0x1000b828
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
mov eax, ebx
call fcn.1000a730
add esp, 0x10
cmp eax, edi
je 0x1000b828
cmp dword [esp + 0x6c], edi
je 0x1000b81d
mov esi, dword [ebp + 0x198]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
xor edi, edi
push edi
push esi
push ecx
push edx
mov dword [esp + 0xb0], ebx
call sub.ntdll.dll__aulldiv
mov ecx, dword [ebp + 0x150]
push edi
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x154]
push esi
push eax
push ecx
mov dword [esp + 0xa4], edx
call sub.ntdll.dll__aulldiv
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x9c], eax
call dword [esp + 0x70]
add esp, 4
xor edi, edi
cmp dword [esp + 0x108], edi
je 0x1000b874
push 0x160
push edi
push ebx
call sub.ntdll.dll_memset
mov eax, dword [ebp + 0x144]
add esp, 0xc
push eax
mov eax, ebx
call fcn.10003220
mov eax, dword [esp + 0x28]
xor edx, edx
div dword [ebp + 0x198]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x34], 0x200
add ecx, 1
add esp, 4
mov dword [esp + 0x28], ecx
cmp ecx, eax
jb 0x1000b0e2
jmp 0x1000ad89
mov eax, dword [ebx + 0xf8]
add eax, dword [ebx + 0xf0]
push 0x160
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xfc]
adc eax, dword [ebx + 0xf4]
push 0
push ebx
mov dword [esp + 0x28], eax
call sub.ntdll.dll_memset
mov ecx, dword [ebp + 0x144]
add esp, 0xc
push ecx
mov eax, ebx
call fcn.10003220
add esp, 4
jmp 0x1000ad89
mov eax, dword [esp + 0x6c]
xor edi, edi
cmp eax, edi
je 0x1000b8e3
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x8c], 0x64
call eax
add esp, 4
cmp dword [0x100e8a90], edi
je 0x1000b8f1
mov dword [0x100e8a90], edi
mov esi, dword [esp + 0x34]
cmp esi, edi
mov dword [esp + 0x20], esi
je 0x1000bab1
mov eax, dword [esi]
cmp dword [eax + 0x14c], 0x1d
jne 0x1000baa2
mov ecx, dword [eax + 0x108]
or ecx, dword [eax + 0x10c]
je 0x1000baa2
mov dword [esp + 0x3c], 0x20
lea ebx, [ebx]
xor eax, eax
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], eax
mov edx, dword [ebp + 0x198]
imul edx, dword [esp + 0x3c]
mov eax, dword [esi]
mov edi, dword [eax + 0xf0]
xor ecx, ecx
sub edi, edx
mov edx, dword [eax + 0xf4]
sbb edx, ecx
mov eax, edx
push eax
mov ecx, edi
push ecx
mov dword [ebx + 0xf4], edx
mov edx, dword [esp + 0x8c]
push 0x200
push edx
mov dword [ebx + 0xf0], edi
mov eax, dword [ebp + 0x130]
push ebp
call eax
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1000ba97
push ebx
call fcn.100054f0
add esp, 4
test eax, eax
jne 0x1000ba97
push ebp
mov esi, ebx
call fcn.100053a0
add esp, 4
test eax, eax
jne 0x1000ba93
xor esi, esi
mov dword [ebx + 0x150], esi
mov ecx, dword [ebp + 0x144]
mov edx, dword [ecx + 0x44]
push ebx
call edx
add esp, 4
test eax, eax
je 0x1000ba82
mov eax, dword [ebx + 0xfc]
cmp eax, esi
mov ecx, dword [ebx + 0xf8]
ja 0x1000b9ee
cmp ecx, 1
jbe 0x1000ba82
add ecx, dword [ebx + 0xf0]
adc eax, dword [ebx + 0xf4]
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, dword [esp + 0x5c]
ja 0x1000ba82
jb 0x1000ba0e
cmp ecx, dword [esp + 0x58]
ja 0x1000ba82
push 0x160
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x1000abcd
push 0x160
mov edi, eax
push 0
push edi
call sub.ntdll.dll_memset
add esp, 0xc
push 0
mov eax, edi
call fcn.10003220
add esp, 4
lea eax, [esp + 0x24]
push eax
mov ecx, 0x58
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
push 0
push ecx
call fcn.10002f00
add esp, 0xc
cmp dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
jle 0x1000ba82
mov edx, esi
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [ebp + 0x144]
push eax
mov eax, ebx
call fcn.10003220
add esp, 4
mov esi, dword [esp + 0x20]
sub dword [esp + 0x3c], 1
jne 0x1000b930
mov esi, dword [esi + 8]
test esi, esi
mov dword [esp + 0x20], esi
jne 0x1000b901
mov edi, dword [sym.imp.MSVCR80.dll_free]
push ebx
mov dword [0x100e8a94], 0
call edi
mov esi, dword [esp + 0xac]
add esp, 4
test esi, esi
je 0x1000bae9
mov ecx, dword [esi]
mov ebx, dword [esi + 8]
push ecx
call edi
add esp, 4
push esi
call edi
add esp, 4
test ebx, ebx
mov esi, ebx
jne 0x1000bad2
mov edx, dword [esp + 0x4c]
push edx
call edi
mov eax, dword [esp + 0x88]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0xf0
ret