Function at 0x30044dcf
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
push edi
mov edi, ecx
jne 0x30044de8
mov eax, dword [esp + 0x2c]
jmp 0x30044deb
movzx eax, word [eax]
mov ebx, dword [esp + 0x28]
push edi
mov edx, ebx
call fcn.30044fe0
test esi, esi
je 0x30044dfd
mov dword [esi], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
lea ebp, [edi + 0x10]
mov dword [esp + 0x14], 0
jne 0x30044e70
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 0x38]
xor esi, esi
push esi
push 4
push esi
push eax
call fcn.302034a7
test esi, esi
jne 0x30044e5f
test edx, edx
jne 0x30044e5f
mov edx, dword [ebx]
push ebp
push esi
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
test eax, eax
jl 0x30044fc8
mov ecx, dword [edi + 0x14]
mov edx, dword [ebp]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov dword [ebp], esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x30044fc8
mov edx, eax
xor ecx, ecx
and edx, 1
jne 0x30044e86
mov ecx, eax
test ecx, ecx
mov edi, ecx
je 0x30044eb0
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push ebx
call fcn.30044920
test eax, eax
je 0x30044fc8
mov dword [esp + 0x14], 1
jmp 0x30044fbe
test edx, edx
je 0x30044fc8
and eax, 0xfffffffe
mov ebp, eax
je 0x30044fc8
cmp dword [esp + 0x30], 0
je 0x30044f2e
mov ebx, dword [ebp + 4]
test ebx, ebx
mov dword [esp + 0x2c], 0x8002802b
je 0x30044f16
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x30044f16
xor edi, edi
test ebx, ebx
jle 0x30044f16
mov eax, dword [esp + 0x30]
movzx ecx, word [eax]
mov dword [esp + 0x28], ecx
jmp 0x30044ef7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
lea ecx, [eax + 6]
push edx
push ecx
mov ecx, dword [esi]
call fcn.30044920
cmp eax, 1
je 0x30044f20
add esi, dword [ebp + 8]
add edi, 1
cmp edi, ebx
jl 0x30044ef3
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
jmp 0x30044f80
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
jmp 0x30044f80
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 4]
test ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x8002802b
je 0x30044f78
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x30044f78
xor edi, edi
test ebx, ebx
jle 0x30044f78
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi]
push edx
xor eax, eax
call fcn.30044920
cmp eax, 1
je 0x30044fd6
add esi, dword [ebp + 8]
add edi, 1
cmp edi, ebx
jl 0x30044f56
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x30044fc8
xor eax, eax
test edi, edi
setge al
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
jl 0x30044f9a
cmp edi, dword [ebp]
jl 0x30044fb4
push 0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + edi*4]
je 0x30044fc8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x30044fc8
mov dword [eax], edi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov dword [esp + 0x18], 0
jmp 0x30044f7c