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

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [0x646038]
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 0x5a3381
push 0x28a
call ebx
add esp, 4
test eax, eax
je 0x5a337b
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 [0x646038]
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 0x5a33a7
add ecx, 4
add edx, 4
sub edi, 4
jae 0x5a3394
jmp 0x5a33b3
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 0x5a3490
test ebx, ebx
je 0x5a33ec
push 0x28a
call ebx
add esp, 4
test eax, eax
je 0x5a33ec
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 0x5a3447
lea eax, [esp + 0x14]
push eax
push 4
call fcn.004e5440
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x5a3430
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 0x5a35d5
or dword [esi + 0x74], 0xf000
push dword [esp + 0x14]
push esi
call fcn.005a51b0
push 4
push 4
push esi
call fcn.005a5a10
add esp, 0x14
cmp byte [esi + 0x2b], 0
jne 0x5a3465
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.005a5590
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x5a3474
test edi, edi
jne 0x5a3b0a
mov ecx, dword [esi + 0x44]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x5a35ef
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 0x5a34ef
push edi
push 8
call fcn.004e5440
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.005a2d70
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 0x5a3b0a
mov ebp, dword [esp + 0xc0]
cmp byte [esi + 0x30], al
je 0x5a359e
mov edx, dword [esi + 8]
mov ecx, ebp
sar ecx, 2
and ecx, 3
je 0x5a35eb
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 0x5a3b0a
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 0x24], ebx
je 0x5a35f8
push 0x6214bc
push 0x10bdb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d4a30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
cmp edi, 5
je 0x5a3447
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
xor edi, edi
jmp 0x5a359e
mov ebp, dword [esp + 0xc0]
jmp 0x5a35a2
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.005b5500
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 0x5a3834
lea edx, [esi + 0x68]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x24], 0
je 0x5a371f
cmp dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
mov dword [esp + 0x3c], eax
jne 0x5a3685
mov dword [esp + 0x20], edx
test ecx, ecx
jne 0x5a371f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 0x18]
push esi
call fcn.005a30b0
mov edi, dword [esp + 0x24]
add esp, 0xc
cmp edi, dword [esp + 0x24]
jb 0x5a3715
push dword [esp + 0x30]
lea eax, [edi - 1]
push dword [esp + 0x38]
push 0
push eax
call fcn.005b5500
add eax, 0x38
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
adc edx, 0
mov ecx, dword [eax]
test ecx, ecx
je 0x5a36d3
cmp edi, ecx
jae 0x5a36d5
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 0x5a3b0a
mov eax, 0xffbf
and word [ebp + 0x1c], ax
lea eax, [esi + 0x68]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jmp 0x5a381e
mov ecx, dword [esp + 0xbc]
lea edx, [esi + 0x68]
inc dword [esp + 0x1c]
test ecx, ecx
je 0x5a3736
cmp dword [ebp + 0x10], 0
jne 0x5a3736
mov ecx, dword [esp + 0xb8]
jmp 0x5a3738
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 0x5a37a8
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.005a2d70
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.005a2d70
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 0x5a37b0
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.005a5ae0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a3b0a
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.005a5ae0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a3b0a
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 0x5a3834
lea edx, [esi + 0x68]
jmp 0x5a3661
lea eax, [esi + 0x68]
test ecx, ecx
je 0x5a3a62
cmp dword [eax], 0
je 0x5a385b
push dword [esp + 0x1c]
push esi
call fcn.005a5360
mov edi, eax
add esp, 8
test edi, edi
jne 0x5a3b0a
and dword [esp + 0xc0], 3
je 0x5a3a11
cmp byte [esi + 0x31], 0
je 0x5a39f8
push dword [esi + 8]
call fcn.00574090
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.005b5b00
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 0x5a38d3
mov dword [esp + 0x14], 1
cmp eax, ebx
je 0x5a38db
mov dword [esp + 0x14], 0
cmp ebx, eax
jg 0x5a39f1
jl 0x5a38ed
cmp ebp, ecx
jae 0x5a39f1
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 0x5a3972
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.005a2d70
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.005a2d70
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 0x5a397a
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.005a5ae0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a3b0a
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.005a5ae0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5a3b0a
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 0x5a38fa
jg 0x5a39f1
cmp ebp, dword [esp + 0x10]
jb 0x5a38fa
cmp dword [esp + 0x14], 0
je 0x5a3a11
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 0x5a3a62
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x5a3a62
jg 0x5a3a27
test ebx, ebx
jb 0x5a3a62
push dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x38]
add eax, dword [esp + 0x24]
push 0
push eax
call fcn.005b5500
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x5a3a53
jg 0x5a3a4f
cmp eax, ebx
jbe 0x5a3a53
mov ebx, eax
mov ebp, edx
push ebp
push ebx
push esi
call fcn.005a4d40
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0xb4]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x5a3a95
test edi, edi
jne 0x5a3b0a
test byte [ebp + 0x1c], 0x40
je 0x5a3a8e
push dword [ebp + 0x18]
inc ebx
push ebx
push esi
call fcn.005a3cd0
add esp, 0xc
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x5a3a70
test edi, edi
jne 0x5a3b0a
mov ebp, dword [esp + 0x38]
nop dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5a3acc
push dword [ebp + 0x18]
inc ebx
dec eax
push ebx
push esi
mov dword [esp + 0x34], eax
call fcn.005a3cd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5a3aa0
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 0x5a3b0a
mov eax, dword [esp + 0xb8]
inc dword [esi + 0x3c]
push esi
mov dword [esi + 0x48], eax
call fcn.005a4910
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret