Function at 0x401db0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x97c
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov ecx, 0x44d800
call fcn.00407890
mov esi, eax
cmp esi, 2
je 0x401e2d
cmp esi, 1
mov byte [esp + 0x64], 0
jne 0x401dfe
push 0x100
lea eax, [esp + 0x68]
push eax
push 0x1389
push 0x44d800
call fcn.00407570
mov al, byte [esp + 0x74]
add esp, 0x10
test al, al
jne 0x401e17
push 0
push 0
push 0
push 0x100
lea ecx, [esp + 0x74]
push ecx
push esi
call fcn.004076c0
add esp, 0x18
lea edx, [esp + 0x64]
push 1
push edx
call fcn.00404750
add esp, 8
push 3
call fcn.0042be8a
push 0
call fcn.00403e10
add esp, 4
test eax, eax
jne 0x401e42
push 3
call fcn.0042be8a
mov eax, dword [esp + 0x98c]
mov ecx, dword [esp + 0x988]
push eax
push ecx
call fcn.00404220
add esp, 8
test eax, eax
jne 0x401e65
push 3
call fcn.0042be8a
push ebx
push ebp
call fcn.00404600
mov dword [esp + 0x18], eax
call fcn.004045b0
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.004046a0
lea edx, [esp + 0x2f4]
push 0x100
push edx
mov dword [esp + 0x24], eax
xor ebx, ebx
xor esi, esi
call fcn.004043a0
mov al, byte [esp + 0x2fc]
add esp, 8
test al, al
jne 0x401eaf
push 3
call fcn.0042be8a
push 0
lea eax, [esp + 0x68c]
push eax
push 0
lea ecx, [esp + 0x300]
push 0
push ecx
call fcn.0042bbc8
lea edx, [esp + 0x308]
push 0x4384c4
push edx
call fcn.0042ba62
add esp, 0x1c
test eax, eax
mov dword [esp + 0x20], eax
jne 0x401eec
mov edi, 3
test ebp, ebp
push 0x100
je 0x401f59
lea eax, [esp + 0x480]
push eax
call fcn.004043d0
lea ecx, [esp + 0x484]
push 0x4384c4
push ecx
call fcn.0042ba62
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401f22
mov edi, 3
lea edx, [esp + 0x1f0]
push 0x100
push edx
call fcn.00404400
lea eax, [esp + 0x1f8]
push 0x4384c4
push eax
call fcn.0042ba62
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x401f99
mov edi, 3
jmp 0x402184
lea ecx, [esp + 0x1f4]
push ecx
call fcn.00404400
mov al, byte [esp + 0x1f8]
add esp, 8
test al, al
je 0x401f99
lea edx, [esp + 0x1f0]
push 0x4384c4
push edx
call fcn.0042ba62
mov esi, eax
add esp, 8
test esi, esi
jne 0x401f99
mov edi, 3
jmp 0x402184
test edi, edi
jne 0x40217f
push 0x5b
call fcn.004039b0
add esp, 4
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401fb2
sub eax, edx
mov ebp, eax
lea eax, [esp + 0x580]
push 0x104
push eax
call fcn.00404430
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
add esp, 8
mov ecx, esi
neg ecx
lea eax, [esp + 0x688]
sbb ecx, ecx
lea edx, [esp + 0x1f0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
and ecx, edx
test eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
je 0x40201f
mov dword [esp + 0x44], 2
jmp 0x40208f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40207c
lea ecx, [esp + 0x16c]
push 0x80
push ecx
mov dword [esp + 0x4c], 1
call fcn.00404460
mov al, byte [esp + 0x174]
add esp, 8
test al, al
je 0x40205a
lea edx, [esp + 0x16c]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x3f8]
push 0x80
push eax
call fcn.00404490
lea ecx, [esp + 0x400]
add esp, 8
mov dword [esp + 0x38], ecx
jmp 0x40208f
call fcn.00404650
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 5
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x580]
test al, al
je 0x4020a5
lea edx, [esp + 0x580]
mov dword [esp + 0x40], edx
test edi, edi
je 0x4020bc
push edi
mov edi, dword [esp + 0x14]
push ebp
push 1
push edi
call fcn.0042bb7c
add esp, 0x10
jmp 0x4020c0
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4020d1
push ebx
push ebp
push 1
push edi
call fcn.0042bb7c
add esp, 0x10
test esi, esi
je 0x4020e2
push esi
push ebp
push 1
push edi
call fcn.0042bb7c
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call fcn.004036a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40217a
mov eax, dword [esp + 0x44]
cmp eax, 5
je 0x40217a
cmp eax, 1
je 0x40217a
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40217a
mov ecx, dword [str.schema]
mov dx, word [0x4384c0]
mov al, byte [0x4384c2]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x78c]
mov word [esp + 0x50], dx
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x5a], al
mov byte [esp + 0x794], 0
call fcn.00403940
add esp, 8
test eax, eax
je 0x402175
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
lea ecx, [esp + 0x47c]
and eax, ecx
push eax
lea edx, [esp + 0x2f8]
push edx
call fcn.004025e0
add esp, 8
mov edi, eax
jmp 0x40217a
mov edi, 3
call fcn.004041a0
cmp edi, 3
jne 0x4021ac
push 0x100
lea eax, [esp + 0x70]
push eax
push 0x187f
push 0x44d800
call fcn.00407570
lea ecx, [esp + 0x7c]
push 1
push ecx
call fcn.004046f0
add esp, 0x18
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x97c
ret