Function at 0x1003971
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x1003d49
mov al, byte [esi]
test al, al
je 0x1003d49
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1003d49
cmp al, 0x40
je 0x10039b0
cmp al, 0x2f
je 0x10039ac
cmp al, 0x2d
jne 0x1003d49
cmp al, 0x40
jne 0x10039da
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
inc esi
push esi
call fcn.0100329a
push dword [ebp + 0x10]
mov esi, eax
push edi
push dword [ebp + 8]
call fcn.01002fb6
push dword [ebp + 8]
call fcn.010049fc
pop ecx
jmp 0x1003d49
inc esi
push ebx
lea ebx, [esi + 1]
mov al, byte [ebx]
cmp al, 0x20
mov dword [ebp + 0xc], ebx
je 0x1003b91
test al, al
je 0x1003b91
cmp al, 9
je 0x1003b91
cmp al, 0xa
je 0x1003b91
mov al, byte [esi]
cmp al, 0x4c
je 0x1003ae4
cmp al, 0x6c
je 0x1003ae4
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
dec esi
push esi
call fcn.0100329a
push 0x1001a40
push dword [ebp + 8]
mov esi, eax
call fcn.0100a180
test eax, eax
pop ecx
pop ecx
jne 0x1003abd
mov esi, 0x1001a2c
lea edi, [ebp - 0x800]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x800]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003a56
push 9
pop ecx
mov esi, 0x1001a04
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x800]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003a72
push 0xa
pop ecx
mov esi, 0x10019d8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x800]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003a8c
push 0xd
pop ecx
mov esi, 0x10019a0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x100198c
lea eax, [ebp - 0x800]
push eax
push esi
call dword [fcn.010010f4]
push esi
call fcn.01004ca5
cmp dword [ebp + 0x10], 0
je 0x1003ad6
push dword [ebp + 8]
push 0x1001970
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0xc
push dword [ebp + 8]
call fcn.010049fc
pop ecx
jmp 0x1003d48
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0100329a
lea ebx, [edi + 0x18]
push ebx
push dword [ebp + 8]
mov esi, eax
call fcn.01002ddb
test eax, eax
jne 0x1003b1b
cmp dword [ebp + 0x10], eax
je 0x1003b1b
push dword [ebp + 8]
push 0x100194c
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0xc
push dword [ebp + 8]
call fcn.010049fc
add edi, 0x1c
mov eax, dword [edi]
inc esi
test eax, eax
pop ecx
je 0x1003b35
push eax
call fcn.010049fc
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0100329a
push 0x1001194
push edi
push dword [ebp + 0xc]
mov esi, eax
call fcn.01002e6c
test eax, eax
je 0x1003b79
and dword [ebx], 0
cmp dword [ebp + 0x10], 0
je 0x1003b79
push eax
call fcn.01004eea
push eax
push dword [ebp + 0xc]
push 0x100117c
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0x14
push dword [ebp + 0xc]
call fcn.010049fc
pop ecx
push dword [edi]
call dword [0x100b948]
push dword [ebx]
jmp 0x1003d42
movsx eax, byte [esi]
cmp eax, 0x53
jg 0x1003bf4
je 0x1003cc5
cmp eax, 0x46
jg 0x1003bd1
je 0x1003c13
sub eax, 0x3f
je 0x1003c7b
dec eax
dec eax
je 0x1003c3c
dec eax
dec eax
je 0x1003c33
dec eax
dec eax
jne 0x1003c9e
mov dword [edi + 0xc], 1
mov esi, ebx
jmp 0x1003d48
cmp eax, 0x48
je 0x1003c7b
cmp eax, 0x4c
je 0x1003cd7
cmp eax, 0x52
jne 0x1003c9e
mov dword [edi], 1
jmp 0x1003bca
cmp eax, 0x68
jg 0x1003c8d
je 0x1003c7b
sub eax, 0x61
je 0x1003c3c
dec eax
dec eax
je 0x1003c33
dec eax
dec eax
je 0x1003bc3
dec eax
jne 0x1003c9e
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0100329a
push dword [ebp + 0x10]
mov esi, eax
push edi
push dword [ebp + 8]
call fcn.01002fb6
jmp 0x1003ad6
mov dword [edi + 0x14], 1
jmp 0x1003bca
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.01003335
cmp dword [ebp + 8], 0
mov esi, eax
je 0x1003d48
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.01002c10
cmp eax, 1
jne 0x1003d48
push dword [ebp + 0xc]
push edi
call fcn.01002d24
jmp 0x1003d48
push edi
mov esi, ebx
call fcn.01002d6f
call fcn.01003565
jmp 0x1003d48
sub eax, 0x6c
je 0x1003cd7
sub eax, 6
je 0x1003bec
dec eax
je 0x1003cc5
dec esi
cmp dword [ebp + 0x10], 0
je 0x1003cbe
movsx eax, byte [esi + 1]
push eax
movsx eax, byte [esi]
push eax
push 0x100192c
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0x10
inc esi
inc esi
jmp 0x1003d48
xor eax, eax
inc eax
push eax
mov dword [edi + 0x10], eax
call dword [0x100b984]
jmp 0x1003bca
lea ebx, [edi + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x1003ce7
push eax
call fcn.010049fc
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0100329a
push 0x1001194
push ebx
push dword [ebp + 8]
mov esi, eax
call fcn.01002e6c
test eax, eax
je 0x1003d2e
and dword [edi + 0x18], 0
cmp dword [ebp + 0x10], 0
je 0x1003d2e
push eax
call fcn.01004eea
push eax
push dword [ebp + 8]
push 0x100117c
push dword [ebp + 0x10]
call fcn.01004a34
add esp, 0x14
push dword [ebp + 8]
call fcn.010049fc
pop ecx
push dword [ebx]
call dword [0x100b948]
push dword [edi + 0x18]
call dword [0x100b940]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0xc