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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 8], esi
mov edx, dword [ebp + 8]
cmp byte [esi + 0x49], 1
mov dword [ebp - 0x18], edi
jne 0x493690
mov bl, byte [esi + 0x48]
test bl, 2
je 0x493690
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x493690
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp ecx, edx
jne 0x49366e
cmp eax, dword [ebp + 0xc]
jne 0x49366e
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 8
je 0x493690
cmp eax, dword [ebp + 0xc]
jg 0x493690
jl 0x49367e
cmp ecx, edx
jae 0x493690
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4936a4
mov ecx, edi
call fcn.0049fb00
mov dword [ebp - 0x14], eax
mov byte [edi + 7], 0
jmp 0x4936ab
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.004932f0
test eax, eax
jne 0x493a9a
cmp byte [esi + 0x49], al
je 0x49367e
mov edx, 1
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
lea ebx, [ebx]
movsx eax, word [esi + 0x4c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, edx
mov ebx, dword [esi + eax*4 + 0x78]
mov dword [ebp - 0xc], ebx
movzx esi, word [ebx + 0x12]
dec esi
mov edi, esi
mov dword [ebp - 0x20], esi
sar edi, cl
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2 + 0x4e], di
jne 0x493802
movzx ecx, byte [ebx + 7]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebx + 0x40]
mov dl, byte [ebx + 3]
movzx ecx, byte [eax + edi*2]
movzx eax, byte [eax + edi*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [ebx + 0x14]
and ecx, eax
add ecx, dword [ebx + 0x38]
add ecx, dword [ebp - 0x20]
test dl, dl
je 0x493742
cmp byte [ecx], 0x80
jb 0x493741
mov eax, dword [ebx + 0x3c]
inc ecx
cmp ecx, eax
jae 0x4939dd
cmp byte [ecx], 0x80
jae 0x493733
inc ecx
lea edx, [ebp - 0x30]
call fcn.00480ca0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jg 0x4937af
jl 0x49375e
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x4937b2
lea edx, [edi + 1]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x4937c7
or ebx, 0xffffffff
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
cmp byte [eax + 5], 0
jne 0x493a20
mov ebx, eax
movzx eax, word [ebx + 0x12]
cmp edx, eax
jl 0x493980
movzx ecx, byte [ebx + 6]
add ecx, dword [ebx + 0x38]
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
jmp 0x4939b3
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x4937d8
jg 0x4937bd
cmp eax, edx
jbe 0x4937d8
mov edx, dword [ebp - 0x10]
lea esi, [edi - 1]
cmp edx, esi
jg 0x4937d1
lea edi, [esi + edx]
sar edi, 1
jmp 0x493707
mov ebx, 1
jmp 0x49376b
mov esi, dword [ebp - 8]
or byte [esi + 0x48], 2
mov dword [esi + 0x18], eax
movsx eax, word [esi + 0x4c]
mov dword [esi + 0x1c], ecx
mov word [esi + eax*2 + 0x4e], di
cmp byte [ebx + 5], 0
jne 0x493a02
mov edx, edi
mov dword [ebp - 0x10], edx
jmp 0x49377d
mov eax, dword [ebx + 0x40]
movzx ebx, byte [ebx + 7]
movzx edx, byte [eax + edi*2 + 1]
movzx eax, byte [eax + edi*2]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
and edx, eax
mov eax, dword [ebp - 0xc]
add edx, ebx
add edx, dword [eax + 0x38]
movzx eax, byte [eax + 8]
movzx ecx, byte [edx]
cmp ecx, eax
jg 0x493848
push dword [ebp - 0x18]
lea eax, [edx + 1]
push eax
push ecx
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
jmp 0x493950
mov al, byte [edx + 1]
test al, al
js 0x49387a
and ecx, 0x7f
movzx eax, al
shl ecx, 7
add ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xa]
cmp ecx, eax
jg 0x49387a
push dword [ebp - 0x18]
lea eax, [edx + 2]
push eax
push ecx
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
jmp 0x493950
mov esi, dword [ebp - 8]
sub edx, ebx
mov ecx, dword [ebp - 0xc]
add esi, 0x18
push esi
call fcn.0048f7f0
mov ebx, dword [esi]
add esp, 4
mov eax, ebx
mov dword [ebp - 0x24], ebx
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x493a86
test edx, edx
ja 0x493a86
jb 0x4938b8
cmp esi, 0x7fffff00
jae 0x493a86
cmp dword [0x5c4b18], 0
je 0x4938f8
mov eax, dword [0x5cfa28]
test eax, eax
je 0x4938d4
push eax
call dword [0x5c4b6c]
add esp, 4
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.0047ca70
mov eax, dword [0x5cfa28]
test eax, eax
je 0x4938f3
push eax
call dword [0x5c4b74]
mov esi, dword [ebp - 0x1c]
jmp 0x493904
mov esi, dword [ebp - 0x1c]
jmp 0x493907
push esi
call dword [0x5c4b3c]
mov esi, eax
mov dword [ebp - 0x1c], esi
add esp, 4
test esi, esi
je 0x493a86
mov eax, dword [ebp - 8]
xor edx, edx
push 2
push esi
push ebx
movsx ecx, word [eax + 0x4c]
mov word [eax + ecx*2 + 0x4e], di
mov ecx, eax
call fcn.00492e20
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x493a7b
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x24]
call dword [ebp - 0x14]
add esp, 0xc
mov ebx, eax
push esi
call fcn.0047cef0
mov esi, dword [ebp - 0x20]
add esp, 4
test ebx, ebx
jns 0x49395c
lea edx, [edi + 1]
mov dword [ebp - 0x10], edx
jmp 0x49396b
jle 0x493a43
mov edx, dword [ebp - 0x10]
lea esi, [edi - 1]
mov dword [ebp - 0x20], esi
cmp edx, esi
jg 0x49376b
mov ebx, dword [ebp - 0xc]
lea edi, [esi + edx]
sar edi, 1
jmp 0x493802
mov eax, dword [ebx + 0x40]
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
shl eax, 8
or ecx, eax
movzx eax, word [ebx + 0x14]
and ecx, eax
add ecx, dword [ebx + 0x38]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [ebp - 0x10]
shl edx, 8
or edx, eax
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], cx
mov ecx, esi
call fcn.00493250
mov ebx, eax
test ebx, ebx
jne 0x493a8e
mov edx, dword [ebp - 0x28]
jmp 0x4936d0
push 0x599054
push 0xe09e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0047f120
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], 0
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
xor ebx, ebx
mov word [esi + 0x2c], ax
and byte [esi + 0x48], 0xf9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov ecx, 0xb
mov dword [eax], 0
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
mov eax, dword [ebp - 0x18]
cmp byte [eax + 7], bl
cmovne ebx, ecx
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0047cef0
add esp, 4
jmp 0x493a8b
mov ebx, 7
mov esi, dword [ebp - 8]
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret