Function at 0x10002180
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, dword [edi + 0x198]
shl esi, 4
mov ebx, eax
jne 0x100021a4
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x100021be
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push esi
push 0
push eax
call sub.ntdll.dll_memset
mov esi, dword [edi + 0x198]
add esp, 0xc
shl esi, 4
jne 0x100021dd
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x100021f7
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push esi
push 0
push eax
call sub.ntdll.dll_memset
mov esi, dword [edi + 0x198]
mov eax, dword [esp + 0x44]
add esp, 0xc
xor edi, edi
push edi
push esi
push edi
push eax
call sub.ntdll.dll__allmul
add eax, dword [ebp + 0xf0]
push edi
adc edx, dword [ebp + 0xf4]
push esi
push edi
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call sub.ntdll.dll__allmul
mov ebp, eax
add ebp, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
cmp ebx, 0x3e8
mov dword [esp + 0x28], edx
jbe 0x10002250
mov ebx, 0x3e8
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x198]
imul esi, ebx
test esi, esi
ja 0x10002286
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x198]
shl edi, 4
cmp esi, edi
ja 0x10002295
mov edi, esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push ecx
push edx
push edi
push ebx
push eax
mov eax, dword [eax + 0x134]
sub esi, edi
mov dword [esp + 0x2c], esi
call eax
add esp, 0x14
cmp eax, edi
jne 0x1000238e
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x134]
push ecx
push ebp
push edi
push ebx
push eax
call edx
add esp, 0x14
cmp eax, edi
jne 0x100023ae
cmp edi, 4
mov edx, dword [esp + 0x10]
mov eax, edi
mov ecx, ebx
jb 0x10002304
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x10002308
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x100022f0
test eax, eax
je 0x1000236d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10002357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10002369
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10002357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10002369
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10002357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10002369
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x10002369
test esi, esi
mov esi, dword [esp + 0x18]
mov eax, 1
jg 0x1000236f
or eax, 0xffffffff
jmp 0x1000236f
mov esi, dword [esp + 0x18]
xor eax, eax
test eax, eax
jne 0x100023ce
add dword [esp + 0x1c], edi
adc dword [esp + 0x20], eax
add ebp, edi
adc dword [esp + 0x28], eax
test esi, esi
ja 0x10002282
jmp 0x10002261
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ecx
call esi
push ebx
call esi
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ebx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret