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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x49], 1
jne 0x46864a
mov cl, byte [edi + 0x48]
test cl, 2
je 0x46864a
mov eax, dword [edi + 0x78]
cmp byte [eax + 2], 0
je 0x46864a
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
cmp edx, esi
jne 0x468629
cmp eax, ebx
jne 0x468629
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
test cl, 8
je 0x46864a
cmp eax, ebx
jg 0x46864a
jl 0x468638
cmp edx, esi
jae 0x46864a
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x468663
push ebx
call fcn.00490970
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebx + 7], 0
jmp 0x46866a
mov dword [ebp - 0x10], 0
push edi
call fcn.004570c0
add esp, 4
test eax, eax
jne 0x468a49
cmp byte [edi + 0x49], al
je 0x468638
mov eax, 1
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
movsx eax, word [edi + 0x4c]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + eax*4 + 0x78]
mov dword [ebp - 8], edx
movzx esi, word [edx + 0x12]
dec esi
mov ebx, esi
mov dword [ebp - 0x18], esi
sar ebx, cl
cmp dword [ebp - 0x10], 0
mov word [edi + eax*2 + 0x4e], bx
jne 0x4687e0
mov al, byte [edx + 3]
mov ecx, dword [edx + 0x40]
mov byte [ebp - 1], al
movzx eax, byte [edx + 7]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movzx eax, byte [ecx + ebx*2]
movzx ecx, byte [ecx + ebx*2 + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [edx + 0x14]
and eax, ecx
add eax, dword [ebp - 0x18]
add eax, dword [edx + 0x38]
cmp byte [ebp - 1], 0
je 0x46870f
cmp byte [eax], 0x80
jb 0x46870e
mov ecx, dword [edx + 0x3c]
nop dword [eax]
inc eax
cmp eax, ecx
jae 0x4689bb
cmp byte [eax], 0x80
jae 0x468700
inc eax
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00476220
mov ecx, dword [ebp - 0x24]
add esp, 8
mov eax, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x14]
jg 0x468782
jl 0x468730
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x468785
lea edx, [ebx + 1]
mov dword [ebp - 0xc], edx
cmp edx, esi
jle 0x46879a
or edi, 0xffffffff
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0
jne 0x4689ed
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
movzx eax, word [ebx + 0x12]
cmp edx, eax
jl 0x46895b
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 0x46898e
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x4687b1
jg 0x468790
cmp eax, edx
jbe 0x4687b1
mov edx, dword [ebp - 0xc]
lea esi, [ebx - 1]
cmp edx, esi
jg 0x4687aa
mov ecx, dword [ebp - 0x20]
lea ebx, [esi + edx]
mov edx, dword [ebp - 8]
sar ebx, 1
jmp 0x4686d1
mov edi, 1
jmp 0x46873d
or byte [edi + 0x48], 2
mov dword [edi + 0x18], eax
movsx eax, word [edi + 0x4c]
mov dword [edi + 0x1c], ecx
mov word [edi + eax*2 + 0x4e], bx
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0
jne 0x4689e0
mov edx, ebx
mov dword [ebp - 0xc], edx
jmp 0x46874d
mov eax, dword [edx + 0x40]
movzx edi, byte [edx + 7]
movzx ecx, byte [eax + ebx*2 + 1]
movzx eax, byte [eax + ebx*2]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x14]
and ecx, eax
mov eax, dword [ebp - 8]
add ecx, edi
add ecx, dword [edx + 0x38]
movzx eax, byte [eax + 8]
movzx edx, byte [ecx]
cmp edx, eax
ja 0x468823
push dword [ebp + 0xc]
lea eax, [ecx + 1]
push eax
push edx
call dword [ebp - 0x10]
add esp, 0xc
mov edi, eax
jmp 0x46892b
mov al, byte [ecx + 1]
test al, al
js 0x468855
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0xa]
cmp edx, eax
ja 0x468855
push dword [ebp + 0xc]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 0x10]
add esp, 0xc
mov edi, eax
jmp 0x46892b
mov esi, dword [ebp + 8]
sub ecx, edi
add esi, 0x18
push esi
push ecx
push dword [ebp - 8]
call fcn.004465a0
mov edi, dword [esi]
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x20], edi
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x468a35
test edx, edx
ja 0x468a35
jb 0x468894
cmp esi, 0x7fffff00
jae 0x468a35
cmp dword [0x52bcb0], 0
je 0x4688d7
mov eax, dword [0x531498]
test eax, eax
je 0x4688b0
push eax
call dword [0x52bd04]
add esp, 4
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00456af0
mov eax, dword [0x531498]
add esp, 8
test eax, eax
je 0x4688d2
push eax
call dword [0x52bd0c]
mov esi, dword [ebp - 0x14]
jmp 0x4688e3
mov esi, dword [ebp - 0x14]
jmp 0x4688e6
push esi
call dword [0x52bcd4]
mov esi, eax
mov dword [ebp - 0x14], esi
add esp, 4
test esi, esi
je 0x468a35
mov eax, dword [ebp + 8]
push 2
push esi
push edi
movsx ecx, word [eax + 0x4c]
push 0
push eax
mov word [eax + ecx*2 + 0x4e], bx
call fcn.00441630
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x468a2a
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x10]
push esi
mov edi, eax
call fcn.0043cb20
mov esi, dword [ebp - 0x18]
add esp, 0x10
test edi, edi
jns 0x468937
lea edx, [ebx + 1]
mov dword [ebp - 0xc], edx
jmp 0x468946
jle 0x468a02
mov edx, dword [ebp - 0xc]
lea esi, [ebx - 1]
mov dword [ebp - 0x18], esi
cmp edx, esi
jg 0x46873d
lea ebx, [esi + edx]
mov edx, dword [ebp - 8]
sar ebx, 1
jmp 0x4687e0
mov eax, dword [ebx + 0x40]
movzx ecx, byte [eax + edx*2]
movzx eax, byte [eax + edx*2 + 1]
shl ecx, 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 - 0xc]
shl edx, 8
or edx, eax
movsx eax, word [edi + 0x4c]
push edx
push edi
mov word [edi + eax*2 + 0x4e], cx
call fcn.00456f20
mov edi, eax
add esp, 8
test edi, edi
jne 0x468a3a
mov edi, dword [ebp + 8]
jmp 0x468690
push 0x50e504
push 0xe255
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043f2a0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
xor edi, edi
mov dword [eax], 0
jmp 0x468a3a
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov word [edx + eax*2 + 0x4e], bx
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
xor edi, edi
jmp 0x468a3a
mov eax, dword [ebp + 0x1c]
xor edi, edi
mov edx, dword [ebp + 8]
mov ecx, 0xb
mov dword [eax], 0
movsx eax, word [edx + 0x4c]
mov word [edx + eax*2 + 0x4e], bx
mov eax, dword [ebp + 0xc]
cmp byte [eax + 7], 0
cmovne edi, ecx
jmp 0x468a3a
push esi
call fcn.0043cb20
add esp, 4
jmp 0x468a3a
mov edi, 7
mov eax, dword [ebp + 8]
xor ecx, ecx
and byte [eax + 0x48], 0xf9
mov word [eax + 0x2c], cx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret