Function at 0x594940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [0x635e20]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RaiseException]
push esi
mov esi, dword [esp + 0xa8]
push edi
test ebx, ebx
je 0x5949b1
push 0x28a
call ebx
add esp, 4
test eax, eax
je 0x5949ab
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call ebp
mov ebx, dword [0x635e20]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x34]
mov edi, 0x2c
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5949d7
add ecx, 4
add edx, 4
sub edi, 4
jae 0x5949c4
jmp 0x5949e3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x24], eax
xor edi, edi
cmp word [esi + 0x28], di
jne 0x594ac0
test ebx, ebx
je 0x594a1c
push 0x28a
call ebx
add esp, 4
test eax, eax
je 0x594a1c
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 3
push edi
push 0xc0000006
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call ebp
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
cmp dword [eax + 0x60], edi
jbe 0x594a77
lea eax, [esp + 0x14]
push eax
push 4
call fcn.004d6a70
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x594a60
mov eax, dword [esi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x594c05
or dword [esi + 0x74], 0xf000
push dword [esp + 0x14]
push esi
call fcn.005967e0
push 4
push 4
push esi
call fcn.00597040
add esp, 0x14
cmp byte [esi + 0x2b], 0
jne 0x594a95
mov eax, dword [esi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [esi + 0x74], 0xfffffff7
or eax, 0xffffffff
mov dword [esp + 0x14], 0
mov word [esi + 0x28], ax
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.00596bc0
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x594aa4
test edi, edi
jne 0x59513a
mov ecx, dword [esi + 0x44]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x594c1f
mov ecx, dword [esi + 0x70]
lea edi, [esi + 0x54]
mov dword [esp + 0x88], 0x82067f37
mov eax, ebx
mov dword [esp + 0x8c], 0x18e22d00
bswap eax
mov dword [esp + 0x90], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x94], eax
test ecx, ecx
jne 0x594b1f
push edi
push 8
call fcn.004d6a70
add esp, 8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0x18
lea eax, [esp + 0x94]
mov dword [esp + 0xa8], ecx
push eax
push 1
call fcn.005943a0
mov edx, dword [esp + 0x50]
mov eax, edx
mov ecx, dword [esp + 0x54]
bswap eax
mov dword [esp + 0xb4], eax
mov eax, ecx
bswap eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x4c], edx
lea edx, [esp + 0x9c]
mov dword [esi + 0x50], ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esi + 8]
push 0
push 0
mov byte [esi + 0x41], 0
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x59513a
mov ebp, dword [esp + 0xc0]
cmp byte [esi + 0x30], al
je 0x594bce
mov edx, dword [esi + 8]
mov ecx, ebp
sar ecx, 2
and ecx, 3
je 0x594c1b
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x59513a
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 0x24], ebx
je 0x594c28
push 0x6128ec
push 0x10bdb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c6060
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
cmp edi, 5
je 0x594a77
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
xor edi, edi
jmp 0x594bce
mov ebp, dword [esp + 0xc0]
jmp 0x594bd2
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea eax, [ebx + 0x18]
cdq
mov dword [esp + 0x6c], ebx
mov ebx, eax
mov eax, edx
mov dword [esp + 0x58], esi
push eax
push ebx
push 0
push ecx
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], eax
call fcn.005a6b40
mov ecx, dword [esp + 0xbc]
add eax, 0x20
mov ebx, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb4]
adc ebx, 0
mov dword [esp + 0x2c], ebx
mov ebp, eax
test eax, eax
je 0x594e64
lea edx, [esi + 0x68]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x24], 0
je 0x594d4f
cmp dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
mov dword [esp + 0x3c], eax
jne 0x594cb5
mov dword [esp + 0x20], edx
test ecx, ecx
jne 0x594d4f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 0x18]
push esi
call fcn.005946e0
mov edi, dword [esp + 0x24]
add esp, 0xc
cmp edi, dword [esp + 0x24]
jb 0x594d45
push dword [esp + 0x30]
lea eax, [edi - 1]
push dword [esp + 0x38]
push 0
push eax
call fcn.005a6b40
add eax, 0x38
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
adc edx, 0
mov ecx, dword [eax]
test ecx, ecx
je 0x594d03
cmp edi, ecx
jae 0x594d05
mov dword [eax], edi
mov eax, dword [esi + 8]
push edx
push dword [esp + 0x18]
push dword [esp + 0xb8]
mov ecx, dword [eax]
push dword [ebp + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x59513a
mov eax, 0xffbf
and word [ebp + 0x1c], ax
lea eax, [esi + 0x68]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x594e4e
mov ecx, dword [esp + 0xbc]
lea edx, [esi + 0x68]
inc dword [esp + 0x1c]
test ecx, ecx
je 0x594d66
cmp dword [ebp + 0x10], 0
jne 0x594d66
mov ecx, dword [esp + 0xb8]
jmp 0x594d68
xor ecx, ecx
mov eax, dword [ebp + 4]
lea edi, [esi + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
bswap ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
cmp dword [edx], 0
mov dword [esp + 0x20], edx
jne 0x594dd8
mov eax, dword [esi + 0x54]
xor ebx, ebx
mov ecx, dword [esi + 0x58]
push edi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push edi
mov dword [esp + 0x50], ecx
cmp byte [esi + 0x41], bl
push 8
sete bl
push eax
push ebx
call fcn.005943a0
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.005943a0
mov eax, dword [edi]
add esp, 0x28
mov ebx, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [esp + 0x50], eax
jmp 0x594de0
xorps xmm0, xmm0
movups xmmword [esp + 0x44], xmm0
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x44]
push 0x18
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00597110
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x59513a
mov ecx, dword [esp + 0x10]
mov eax, ebx
add ecx, 0x18
adc eax, edi
push eax
push ecx
push dword [esp + 0xb8]
lea eax, [esp + 0x64]
push dword [esp + 0x24]
push eax
call fcn.00597110
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x59513a
mov eax, dword [esp + 0x34]
add dword [esp + 0x10], eax
mov dword [esp + 0x38], ebp
adc ebx, dword [esp + 0x30]
or word [ebp + 0x1c], 0x40
add ebp, 0x10
mov dword [esp + 0x2c], ebx
mov ebp, dword [ebp]
mov ecx, dword [esp + 0xbc]
test ebp, ebp
je 0x594e64
lea edx, [esi + 0x68]
jmp 0x594c91
lea eax, [esi + 0x68]
test ecx, ecx
je 0x595092
cmp dword [eax], 0
je 0x594e8b
push dword [esp + 0x1c]
push esi
call fcn.00596990
mov edi, eax
add esp, 8
test edi, edi
jne 0x59513a
and dword [esp + 0xc0], 3
je 0x595041
cmp byte [esi + 0x31], 0
je 0x595028
push dword [esi + 8]
call fcn.005656c0
mov ebp, dword [esp + 0x14]
add esp, 4
cdq
mov ecx, eax
add ecx, ebp
mov dword [esp + 0x10], ecx
mov ecx, edx
adc ecx, ebx
sub dword [esp + 0x10], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
call fcn.005a7140
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
sbb eax, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x64], eax
cmp ecx, ebp
jne 0x594f03
mov dword [esp + 0x14], 1
cmp eax, ebx
je 0x594f0b
mov dword [esp + 0x14], 0
cmp ebx, eax
jg 0x595021
jl 0x594f1d
cmp ebp, ecx
jae 0x595021
mov ecx, dword [esp + 0xb8]
bswap ecx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x38]
lea edi, [esi + 0x4c]
mov dword [esp + 0x74], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x18]
bswap eax
mov dword [esp + 0x70], eax
cmp dword [esi + 0x68], 0
jne 0x594fa2
mov eax, dword [esi + 0x54]
xor ebx, ebx
mov ecx, dword [esi + 0x58]
push edi
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x74]
push edi
mov dword [esp + 0x84], ecx
cmp byte [esi + 0x41], bl
push 8
sete bl
push eax
push ebx
call fcn.005943a0
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.005943a0
mov eax, dword [edi]
add esp, 0x28
mov ebx, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x80], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [esp + 0x84], eax
jmp 0x594faa
xorps xmm0, xmm0
movups xmmword [esp + 0x78], xmm0
push ebx
push ebp
push 0x18
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00597110
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x59513a
mov ecx, ebp
mov eax, ebx
add ecx, 0x18
adc eax, edi
push eax
push ecx
push dword [esp + 0xb8]
lea eax, [esp + 0x64]
push dword [esp + 0x24]
push eax
call fcn.00597110
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x59513a
add ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
adc ebx, dword [esp + 0x30]
inc dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
cmp ebx, dword [esp + 0x24]
jl 0x594f2a
jg 0x595021
cmp ebp, dword [esp + 0x10]
jb 0x594f2a
cmp dword [esp + 0x14], 0
je 0x595041
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0xc0]
push ebp
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov edi, eax
cmp byte [esi + 0x2f], 0
je 0x595092
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x595092
jg 0x595057
test ebx, ebx
jb 0x595092
push dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x38]
add eax, dword [esp + 0x24]
push 0
push eax
call fcn.005a6b40
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x595083
jg 0x59507f
cmp eax, ebx
jbe 0x595083
mov ebx, eax
mov ebp, edx
push ebp
push ebx
push esi
call fcn.00596370
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0xb4]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x5950c5
test edi, edi
jne 0x59513a
test byte [ebp + 0x1c], 0x40
je 0x5950be
push dword [ebp + 0x18]
inc ebx
push ebx
push esi
call fcn.00595300
add esp, 0xc
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x5950a0
test edi, edi
jne 0x59513a
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5950fc
push dword [ebp + 0x18]
inc ebx
dec eax
push ebx
push esi
mov dword [esp + 0x34], eax
call fcn.00595300
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5950d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov ecx, dword [esp + 0xb0]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [esi + 0x44], ebx
cmp dword [esp + 0xbc], 0
mov word [esi + 0x42], ax
je 0x59513a
mov eax, dword [esp + 0xb8]
inc dword [esi + 0x3c]
push esi
mov dword [esi + 0x48], eax
call fcn.00595f40
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret