Function at 0x404310
Capabilities:
Terminate process

Disassembly:
sub esp, 0xdc
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [0x5b46b4]
mov ecx, dword [0x65c978]
mov dword [eax], 0x4017c0
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], fcn.004011e0
mov dword [esp + 0x28], fcn.00401280
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00414550
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x6752c8
mov ebp, 0x65c980
mov esi, 0xa
lea ebx, [ebx]
cmp dword [esp + 0x3c], ebx
jne 0x4044b5
mov edi, 1
mov dword [0x65c184], ebx
mov dword [0x67d2a8], ebx
mov dword [0x67d2ac], edi
call fcn.0056c7a0
push eax
push edi
call fcn.00419b90
add esp, 8
call fcn.00415000
test eax, eax
jle 0x404405
mov ecx, dword [0x67d27c]
cmp dword [ecx + 0x10], ebx
jne 0x404405
mov eax, dword [0x67d2a0]
cmp eax, ebx
jne 0x4043e0
or eax, 0xffffffff
mov edx, dword [ecx]
push eax
push edx
call fcn.004118f0
add esp, 8
test eax, eax
jne 0x404405
mov eax, dword [0x67d2a0]
push eax
push 0x452
call fcn.004073f0
add esp, 8
jmp 0x404427
push 0x65c180
call fcn.00414550
mov ecx, dword [0x65c978]
mov edx, dword [0x67d27c]
push eax
push ebx
push ecx
push edx
call fcn.00560310
add esp, 0x14
mov dword [0x65c184], eax
cmp eax, ebx
je 0x4044e2
cmp dword [0x67d288], ebx
jne 0x404452
cmp eax, 0x452
jne 0x4044b5
mov dword [0x67d2a4], eax
call fcn.00416210
jmp 0x404390
cmp dword [0x67d27c], 0x65c140
je 0x4044b5
cmp eax, 0x452
jne 0x404475
mov eax, dword [0x65c180]
push eax
call fcn.00401280
add esp, 4
jmp 0x40448b
mov ecx, dword [0x67d280]
push edi
push ecx
call fcn.00413620
add esp, 8
mov dword [0x67d280], ebx
mov eax, dword [0x65c184]
mov edx, eax
sub edx, 0x452
neg edx
push fcn.00401280
sbb edx, edx
and edx, eax
push edi
push edx
call section..text
add esp, 0xc
test eax, eax
je 0x404390
call fcn.00416210
cmp dword [esp + 0x38], ebx
je 0x4044c9
push ebx
call fcn.00425c90
add esp, 4
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0xdc
ret
call fcn.0056c7a0
neg eax
push eax
push edi
call fcn.00419b90
mov eax, dword [0x65c180]
add esp, 8
cmp dword [0x67d288], ebx
je 0x404750
cmp dword [0x67d27c], 0x65c140
jne 0x404750
cmp eax, 0x3a
je 0x4046e9
cmp eax, 0x39
jne 0x404750
push 0x65c209
call fcn.00414550
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [str.public]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x65c180]
add ecx, 0x148
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004011e0
add esp, 0x24
test eax, eax
jne 0x4044b5
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call fcn.00573b90
mov eax, 0x65c209
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404587
sub eax, edx
je 0x4045e4
mov edx, dword [0x67d294]
push ebx
push ebx
push edx
push 4
push ebx
push 0x65c188
push edi
call fcn.004253c0
add esp, 0x1c
mov dword [0x65c184], eax
cmp eax, ebx
jne 0x404606
mov dword [esp + 0x38], edi
cmp byte [0x65c967], bl
jne 0x4045ca
cmp byte [0x65c966], 0x4e
je 0x4045d0
or dword [0x67d29c], edi
cmp byte [0x65c968], bl
je 0x404606
or dword [0x67d29c], 0x100
jmp 0x404606
cmp dword [esp + 0x38], ebx
jne 0x404600
push str.not_attached_to_database
push 0x1b
call fcn.004073f0
add esp, 8
mov dword [0x65c184], eax
jmp 0x404606
mov dword [0x65c184], ebx
lea eax, [esp + 0x64]
push eax
call fcn.004113d0
mov eax, dword [0x67d280]
add esp, 4
cmp word [esp + 0x18], bx
je 0x404636
cmp eax, ebx
je 0x40466e
push edi
push eax
call fcn.00413620
add esp, 8
xor eax, eax
mov dword [0x67d280], eax
jmp 0x40466e
cmp eax, ebx
je 0x40466e
cmp dword [esp + 0x10], eax
je 0x40466e
push ebx
call fcn.004129e0
add esp, 4
test al, al
je 0x404669
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x2b35
call fcn.004073f0
add esp, 0xc
mov dword [0x65c184], eax
mov eax, dword [0x67d280]
cmp dword [0x65c184], ebx
jne 0x404798
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x404798
push ecx
cmp word [esp + 0x20], bx
je 0x4046c8
call fcn.00413590
add esp, 4
mov dword [0x65c184], eax
cmp dword [0x67d294], ebx
je 0x4046d5
mov eax, dword [0x5b46ac]
mov dword [eax + 4], 2
mov eax, dword [0x65c184]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x10]
mov dword [0x67d280], eax
jmp 0x404798
call fcn.00414260
add esp, 4
mov dword [0x65c184], eax
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x10]
mov dword [0x67d280], eax
jmp 0x404798
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x3a
call fcn.004011e0
add esp, 0xc
test eax, eax
jne 0x4044b5
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x404748
cmp eax, dword [0x67d280]
jne 0x404748
push eax
call fcn.00414140
add esp, 4
mov dword [0x65c184], eax
cmp eax, ebx
jne 0x40475f
mov eax, dword [0x65c180]
push eax
call fcn.00401280
add esp, 4
cmp dword [esp + 0x24], ebx
je 0x404390
mov dword [esp + 0x3c], edi
jmp 0x404390
mov dword [0x65c184], ebx
jmp 0x404727
mov eax, dword [0x65c184]
mov dword [0x67d2ac], 2
mov edx, dword [0x65c180]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x58], eax
call fcn.004018a0
add esp, 8
sub eax, edi
je 0x4048c6
sub eax, edi
je 0x4048b1
sub eax, edi
jne 0x4048bb
mov eax, dword [esp + 0x50]
mov dword [0x65c184], eax
movsx ecx, word [esp + 0x14]
mov edx, dword [0x65c9c4]
push ecx
push edx
call fcn.004118f0
add esp, 8
test eax, eax
jg 0x4047c0
push 0x2b16
call fcn.004073f0
add esp, 4
jmp 0x4047d7
movsx eax, word [esp + 0x14]
mov ecx, dword [0x65c9c4]
push ebx
push ebp
push eax
push ecx
call fcn.00412070
add esp, 0x10
mov dword [0x67d27c], ebp
cmp eax, ebx
jne 0x40485c
call fcn.00414550
test byte [eax + 6], 1
je 0x4047f2
mov dword [0x65c9bc], edi
call fcn.00414550
mov edx, 0x100
test word [eax + 6], dx
je 0x404808
mov dword [0x65c9b8], edi
mov eax, dword [str.public]
xor ecx, ecx
cmp dword [eax + 0x148], esi
setne cl
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x148]
mov dword [0x65c978], ecx
cmp eax, 0xffffffff
je 0x40483b
cmp eax, esi
je 0x40483b
cmp eax, 0x20
mov eax, 0xbb8
jne 0x404840
mov eax, 0x138b
mov dword [0x5b6088], eax
mov eax, dword [0x65c184]
cmp eax, ebx
je 0x404390
mov edi, 1
jmp 0x40475f
mov ecx, dword [0x67d290]
mov eax, dword [0x67d28c]
mov esi, dword [0x65c9c4]
push 0x65c9c4
push ecx
push 0x65c97c
mov dword [0x65c97c], eax
call fcn.00412350
add esp, 0xc
cmp eax, ebx
jne 0x4048d4
push 2
push esi
mov dword [0x67d280], ebx
call fcn.00410cf0
push esi
call fcn.00410d10
push fcn.00401280
push ebx
push ebx
call section..text
add esp, 0x18
jmp 0x404385
mov edx, dword [esp + 0x50]
mov dword [0x65c184], edx
mov dword [0x67d2ac], edi
jmp 0x404390
mov eax, dword [esp + 0x50]
mov dword [0x65c184], eax
jmp 0x404390
mov ecx, dword [0x65c180]
push ecx
mov dword [0x65c184], eax
mov dword [0x67d27c], 0x65c140
call fcn.00401280
mov edx, dword [0x67d27c]
push edx
call fcn.00411c20
add esp, 8
push edi
call dword [sym.imp.MSVCR90.dll_exit]
int3