Function at 0x10009f20
Capabilities:
Terminate process

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x50]
xor ecx, ecx
push esi
xor ebx, ebx
cmp ebp, ecx
push edi
mov edi, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov esi, ebp
je 0x10009fd4
mov eax, dword [esi]
mov eax, dword [eax + 0x150]
cmp eax, 4
jne 0x10009faa
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
mov edx, eax
mov dword [esp + 0x2c], edx
je 0x10009f6b
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10009f78
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
cmp esi, ebp
mov eax, dword [esi]
mov ecx, dword [eax + 0x154]
mov dword [esp + 0x24], ecx
jne 0x10009f8c
mov dword [esp + 0x58], edx
mov ebp, dword [sym.imp.MSVCR80.dll_free]
push eax
call ebp
add esp, 4
push esi
call ebp
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x5c]
add esp, 4
xor ecx, ecx
jmp 0x10009fc8
cmp eax, 3
jne 0x10009fc0
cmp ebx, ecx
jne 0x10009fba
add dword [esp + 0x14], 1
mov ebx, esi
mov dword [esp + 0x1c], esi
jmp 0x10009fc5
add dword [esp + 0x14], 1
mov esi, dword [esi + 8]
cmp esi, ecx
jne 0x10009f4b
cmp ebx, ecx
jne 0x10009fde
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
cmp dword [esp + 0x14], 4
je 0x1000a1b6
cmp dword [esp + 0x5c], ecx
jne 0x1000a1b6
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
add eax, 0xffffffff
adc ecx, 0xffffffff
push ecx
mov dword [esp + 0x40], eax
push eax
lea esi, [esp + 0x50]
mov eax, edi
mov dword [esp + 0x48], ecx
call fcn.10002dd0
add esp, 8
mov eax, esi
mov dword [esp + 0x50], 1
call fcn.10009b20
cmp dword [ebx + 4], 0
mov dword [esp + 0x14], eax
mov ebp, edx
je 0x1000a0d3
mov edx, dword [ebx + 4]
mov esi, dword [edx]
mov edx, dword [esi + 0xf8]
add edx, dword [esi + 0xf0]
mov ecx, dword [esi + 0xfc]
adc ecx, dword [esi + 0xf4]
add edx, 0xffffffff
adc ecx, 0xffffffff
cmp ebp, ecx
ja 0x1000a0d3
jb 0x1000a06b
cmp eax, edx
ja 0x1000a0d3
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea esi, [esp + 0x50]
mov eax, edi
call fcn.10002dd0
add esp, 8
mov eax, esi
mov dword [esp + 0x50], 1
call fcn.10009b20
mov ebp, edx
mov edx, dword [ebx + 4]
mov edx, dword [edx]
mov ecx, dword [edx + 0xf8]
add ecx, dword [edx + 0xf0]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xfc]
adc eax, dword [edx + 0xf4]
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp ebp, eax
ja 0x1000a0d3
jb 0x1000a0c7
cmp dword [esp + 0x14], ecx
ja 0x1000a0d3
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ebx, dword [eax + 0xf8]
add ebx, dword [eax + 0xf0]
mov edx, dword [eax + 0xfc]
adc edx, dword [eax + 0xf4]
add ebx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
push eax
mov dword [esp + 0x44], eax
push ebx
lea esi, [esp + 0x50]
mov eax, edi
mov dword [esp + 0x44], ebx
call fcn.10002dd0
mov eax, dword [edi + 0x104]
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 8]
sub eax, 1
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x108]
add esp, 8
test esi, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], esi
je 0x1000a176
lea eax, [esp + 0x48]
call fcn.10009b20
mov ecx, dword [esi]
cmp edx, dword [ecx + 0xf4]
jb 0x1000a176
ja 0x1000a154
cmp eax, dword [ecx + 0xf0]
jb 0x1000a176
mov edx, dword [esp + 0x40]
push edx
push ebx
lea esi, [esp + 0x50]
mov eax, edi
call fcn.10002dd0
mov eax, dword [edi + 0x108]
mov esi, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
call fcn.10009b20
test esi, esi
mov dword [esp + 0x34], eax
mov ebx, edx
je 0x1000a57b
mov esi, dword [esi]
cmp ebx, dword [esi + 0xf4]
jb 0x1000a57b
ja 0x1000a1a9
cmp eax, dword [esi + 0xf0]
jb 0x1000a57b
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
jmp 0x1000a577
cmp dword [ebx + 4], ecx
jne 0x1000a21e
mov ebx, dword [ebx]
mov eax, dword [ebx + 0xf0]
mov ebp, dword [ebx + 0xf4]
add eax, 0xffffffff
adc ebp, 0xffffffff
push ebp
mov dword [esp + 0x18], eax
push eax
lea esi, [esp + 0x50]
mov eax, edi
call fcn.10002dd0
add esp, 8
cmp dword [esp + 0x48], 0
ja 0x1000a1f5
cmp dword [esp + 0x4c], 1
jbe 0x1000a378
mov eax, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
call fcn.10009b20
mov dword [esp + 0x14], eax
mov ebp, edx
jmp 0x1000a378
mov edx, dword [ebx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xf8]
mov edx, dword [eax + 0xfc]
mov esi, dword [edi + 0x198]
xor ebp, ebp
add ecx, dword [eax + 0xf0]
push ebp
adc edx, dword [eax + 0xf4]
add ecx, 0xffffffff
push esi
adc edx, 0xffffffff
push edx
push ecx
call sub.ntdll.dll__aulldiv
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0x108]
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0x104]
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0x104]
push ecx
add eax, 1
push ebp
push eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 1
call sub.ntdll.dll__allmul
xor ecx, ecx
push ecx
mov ecx, dword [edi + 0x108]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push ebp
push esi
push edx
push eax
call sub.ntdll.dll__allmul
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xf0]
mov eax, dword [eax + 0xf4]
mov ebp, edx
cmp ebp, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
jb 0x1000a378
ja 0x1000a2e2
cmp dword [esp + 0x14], ecx
jb 0x1000a378
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xf8]
add ecx, dword [eax + 0xf0]
mov edx, dword [eax + 0xfc]
adc edx, dword [eax + 0xf4]
lea esi, [esp + 0x48]
push edx
push ecx
mov eax, edi
call fcn.10002dd0
mov eax, dword [esp + 0x54]
mov ecx, 1
add eax, ecx
add esp, 8
cmp eax, dword [edi + 0x104]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
jb 0x1000a336
add dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x48]
call fcn.10009b20
mov ebp, edx
cmp ebp, dword [esp + 0x40]
mov dword [esp + 0x14], eax
jb 0x1000a378
ja 0x1000a357
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x14], eax
jb 0x1000a378
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xf8]
add ecx, dword [eax + 0xf0]
mov ebp, dword [eax + 0xfc]
adc ebp, dword [eax + 0xf4]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
test eax, eax
mov ebx, dword [edi + 0x108]
jne 0x1000a424
mov eax, dword [edi + 0x104]
mov ecx, dword [edi + 0x100]
mov esi, dword [edi + 0x198]
sub ecx, 1
lea edx, [eax - 1]
mov dword [esp + 0x4c], edx
mul ecx
mov ecx, eax
xor eax, eax
add ecx, dword [esp + 0x4c]
push eax
adc edx, eax
add ecx, 1
push ebx
adc edx, eax
push edx
push ecx
call sub.ntdll.dll__allmul
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
xor eax, eax
push eax
push esi
push edx
push ecx
call sub.ntdll.dll__allmul
mov ebx, edx
mov edx, dword [edi + 0x110]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x114]
mov ecx, edx
sub ecx, esi
mov esi, 0
mov dword [esp + 0x40], eax
sbb eax, esi
cmp eax, ebx
ja 0x1000a57b
jb 0x1000a40b
cmp ecx, dword [esp + 0x34]
jae 0x1000a57b
mov eax, dword [edi + 0x198]
mov ebx, dword [esp + 0x40]
xor ecx, ecx
sub edx, eax
sbb ebx, ecx
mov dword [esp + 0x34], edx
jmp 0x1000a57b
mov eax, dword [eax]
mov esi, dword [eax + 0xf0]
mov ecx, dword [edi + 0x198]
mov eax, dword [eax + 0xf4]
xor edx, edx
push edx
push ecx
mov dword [esp + 0x34], esi
mov esi, dword [edi + 0x104]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x34]
push eax
push edx
mov dword [esp + 0x40], eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
push ecx
push ebx
push edx
push eax
call sub.ntdll.dll__aulldiv
xor ecx, ecx
push ecx
push esi
push edx
push eax
call sub.ntdll.dll__aulldiv
lea ecx, [esi - 1]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
push ecx
push esi
sub eax, 1
push ecx
push eax
mov dword [esp + 0x58], eax
call sub.ntdll.dll__allmul
mov ecx, eax
xor eax, eax
add ecx, dword [esp + 0x4c]
push eax
push ebx
adc edx, eax
push edx
push ecx
call sub.ntdll.dll__allmul
mov ecx, eax
xor eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [edi + 0x198]
add ecx, 0xffffffff
push eax
adc edx, 0xffffffff
push edx
push ecx
call sub.ntdll.dll__allmul
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 0xf8]
add ecx, dword [eax + 0xf0]
mov ebx, edx
mov edx, dword [eax + 0xfc]
adc edx, dword [eax + 0xf4]
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
cmp ebx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
ja 0x1000a57b
jb 0x1000a500
cmp dword [esp + 0x34], ecx
ja 0x1000a57b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, 0xffffffff
adc ecx, 0xffffffff
push ecx
mov dword [esp + 0x20], eax
push eax
lea esi, [esp + 0x50]
mov eax, edi
mov dword [esp + 0x28], ecx
call fcn.10002dd0
mov eax, dword [edi + 0x108]
add esp, 8
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x50], eax
jbe 0x1000a53e
sub dword [esp + 0x4c], 1
jmp 0x1000a550
mov ecx, dword [edi + 0x104]
sub dword [esp + 0x48], 1
sub ecx, 1
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x48]
call fcn.10009b20
mov ebx, edx
cmp ebx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
ja 0x1000a57b
jb 0x1000a56f
mov edx, dword [esp + 0x3c]
cmp eax, edx
ja 0x1000a57b
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x144]
push 0x160
mov dword [esp + 0x30], ecx
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000a5a1
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x160
push 0
push esi
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
mov eax, esi
call fcn.10003220
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add esp, 4
push 0
mov dword [esi + 0x154], eax
mov ecx, dword [edi + 0x198]
push ecx
push ebx
push edx
call sub.ntdll.dll__aulldiv
mov ecx, dword [edi + 0x108]
push 0
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
mov ecx, dword [edi + 0x104]
push 0
push ecx
push edx
push eax
call sub.ntdll.dll__aulldiv
mov edx, 0x3ff
cmp edx, eax
sbb eax, eax
and eax, 0xa
add eax, 5
mov dword [esi + 0x13c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xf0], eax
xor edx, edx
mov dword [esi + 0x150], 4
mov dword [esi + 0xf4], ebp
mov ecx, dword [edi + 0x198]
sub ecx, eax
sbb edx, ebp
add ecx, dword [esp + 0x34]
lea eax, [esp + 0x28]
push eax
mov dword [esi + 0xf8], ecx
mov ecx, dword [esp + 0x5c]
adc edx, ebx
push 0
push ecx
mov dword [esi + 0xfc], edx
call fcn.10002f00
add esp, 0xc
cmp dword [esp + 0x28], 0
mov edi, eax
jle 0x1000a672
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret