Function at 0x10007810
Capabilities:
Terminate process

Disassembly:
sub esp, 0x448
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x444], eax
mov eax, dword [esp + 0x450]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x454]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], eax
je 0x1000790d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x150]
cmp eax, 3
je 0x10007878
cmp eax, 4
jne 0x100078f2
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push 0x10
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10007942
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 0x160
mov dword [ebx + 0xc], eax
call esi
mov edi, eax
add esp, 4
test edi, edi
je 0x10007942
push 0x160
push 0
push edi
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [ebx], edi
mov esi, dword [edx]
mov ecx, 0x58
add esp, 0xc
cmp dword [esp + 0x20], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], eax
mov dword [esp + 0x18], ebx
je 0x100078ef
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0
jmp 0x100078f2
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10007862
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10007914
xor eax, eax
jmp 0x10007df7
mov eax, dword [eax]
mov esi, dword [eax + 0xf0]
mov edi, dword [eax + 0xf4]
push 0x160
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x1000794a
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push 0x160
push 0
push ebx
call sub.ntdll.dll_memset
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x13c], 5
mov eax, dword [ecx + 8]
add esp, 0xc
test eax, eax
je 0x10007d1e
mov edx, dword [eax]
cmp dword [edx + 0x150], 3
jne 0x10007d1e
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
cmp dword [ecx + 0x150], 3
jne 0x10007d06
mov eax, dword [ebp + 0x134]
push edi
push esi
push 0x200
lea edx, [esp + 0x25c]
push edx
push ebp
call eax
add esp, 0x14
cmp eax, 0x200
je 0x100079d2
push 0x200
lea ecx, [esp + 0x254]
push 0
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea edx, [esp + 0x54]
push 0
push edx
call sub.ntdll.dll_memset
mov edx, dword [esp + 0x24]
mov ecx, 0x6f
lea esi, [esp + 0x25c]
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x20e]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [edi]
push ecx
push edx
push ebp
mov byte [esp + 0x25e], 0x55
mov byte [esp + 0x25f], 0xaa
call fcn.10008b10
mov eax, dword [edi + 8]
add esp, 0x10
test eax, eax
je 0x10007cb5
mov eax, dword [eax]
cmp dword [eax + 0x150], 3
jne 0x10007cb5
mov esi, dword [eax + 0xf0]
mov ecx, dword [ebp + 0x198]
mov eax, dword [eax + 0xf4]
xor edx, edx
sub esi, ecx
sbb eax, edx
mov dword [ebx + 0xf4], eax
push edx
mov dword [ebx + 0xf0], esi
mov ecx, dword [ebp + 0x198]
mov ebx, dword [ebx + 0xf4]
push ecx
mov eax, esi
push ebx
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
call sub.ntdll.dll__aulldiv
mov ecx, dword [ebp + 0x108]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.100611c0
add ecx, 1
push esi
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x104]
push ecx
push edx
push eax
mov dword [esp + 0x5c], ebx
call fcn.100611c0
mov edi, eax
mov eax, dword [ebp + 0x108]
cmp dword [esp + 0x30], eax
mov esi, ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
je 0x10007af0
test esi, esi
jbe 0x10007adc
sub esi, 1
jmp 0x10007aec
mov esi, dword [ebp + 0x104]
sub esi, 1
sub edi, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edx, dword [eax + 0xf8]
add edx, dword [eax + 0xf0]
mov ebx, dword [eax + 0xfc]
adc ebx, dword [eax + 0xf4]
mov ecx, dword [ebp + 0x104]
mov eax, edx
add eax, 0xffffffff
mov dword [esp + 0x40], eax
adc ebx, 0xffffffff
xor eax, eax
push eax
push ecx
push eax
push edi
mov dword [esp + 0x40], 1
call sub.ntdll.dll__allmul
mov ecx, eax
xor eax, eax
add ecx, esi
push eax
adc edx, eax
mov eax, dword [ebp + 0x198]
push eax
push edx
push ecx
call sub.ntdll.dll__allmul
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 0x108]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
cmp edx, ebx
ja 0x10007bfd
jb 0x10007b6f
cmp eax, dword [esp + 0x40]
ja 0x10007bfd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea esi, [esp + 0x30]
mov eax, ebp
call fcn.10002dd0
mov edi, dword [esp + 0x30]
add esp, 8
xor eax, eax
push eax
mov eax, dword [ebp + 0x104]
push eax
push 0
push edi
mov dword [esp + 0x40], 1
call sub.ntdll.dll__allmul
mov esi, dword [esp + 0x2c]
mov ecx, eax
xor eax, eax
add ecx, esi
push eax
adc edx, eax
mov eax, dword [ebp + 0x198]
push eax
push edx
push ecx
call sub.ntdll.dll__allmul
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 0x108]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
cmp edx, ebx
ja 0x10007bfd
jb 0x10007bdd
cmp eax, dword [esp + 0x40]
ja 0x10007bfd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea esi, [esp + 0x30]
mov eax, ebp
call fcn.10002dd0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
add esp, 8
xor eax, eax
push eax
mov eax, dword [ebp + 0x104]
push eax
push 0
push edi
call sub.ntdll.dll__allmul
mov ecx, eax
xor eax, eax
add ecx, esi
push eax
adc edx, eax
mov eax, dword [ebp + 0x108]
push eax
push edx
push ecx
call sub.ntdll.dll__allmul
mov ecx, eax
xor eax, eax
add ecx, dword [esp + 0x30]
push eax
adc edx, eax
mov eax, dword [ebp + 0x198]
add ecx, 0xffffffff
push eax
adc edx, 0xffffffff
push edx
push ecx
call sub.ntdll.dll__allmul
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], edx
mov edx, dword [ecx + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0xf8]
add ecx, dword [eax + 0xf0]
mov edx, dword [eax + 0xfc]
adc edx, dword [eax + 0xf4]
sub ecx, dword [esi + 0xf0]
lea eax, [esp + 0x21e]
sbb edx, dword [esi + 0xf4]
mov dword [esi + 0xf8], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esi + 0xfc], edx
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
mov eax, dword [eax + 0xf0]
push edx
push eax
push ebp
call fcn.10008b10
add esp, 0x10
mov ebx, esi
cmp dword [esp + 0x464], 0
jne 0x10007cee
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x138]
push edx
push 0x200
lea eax, [esp + 0x5c]
push eax
push ebp
call ecx
add esp, 0x14
cmp eax, 0x200
je 0x10007cee
mov dword [esp + 0x34], 1
mov edx, dword [ebx + 0xf0]
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov esi, edx
mov edi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10007986
jmp 0x10007dc8
mov eax, dword [ebp + 0x134]
push edi
push esi
push 0x200
lea edx, [esp + 0x25c]
push edx
push ebp
call eax
add esp, 0x14
cmp eax, 0x200
je 0x10007d57
push 0x200
lea ecx, [esp + 0x254]
push 0
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea edx, [esp + 0x54]
push 0
push edx
call sub.ntdll.dll_memset
mov ecx, 0x6f
lea esi, [esp + 0x25c]
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp dword [esp + 0x464], 0
movsw word es:[edi], word [esi]
mov byte [esp + 0x24e], 0x55
mov byte [esp + 0x24f], 0xaa
jne 0x10007dc8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x138]
push ecx
push 0x200
lea edx, [esp + 0x5c]
push edx
push ebp
call eax
add esp, 0x14
cmp eax, 0x200
je 0x10007dc8
mov dword [esp + 0x34], 1
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_free]
call ebx
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [esi]
test eax, eax
mov edi, dword [esi + 8]
je 0x10007de7
push eax
call ebx
add esp, 4
push esi
call ebx
add esp, 4
test edi, edi
mov esi, edi
jne 0x10007dd8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0x448
ret