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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov edx, dword [ebp + 8]
cmp byte [esi + 0x49], 1
mov dword [ebp - 0x24], edi
jne 0x1001a786
mov bl, byte [esi + 0x48]
test bl, 2
je 0x1001a786
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x1001a786
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp ecx, edx
jne 0x1001a76e
cmp eax, dword [ebp + 0xc]
jne 0x1001a76e
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 0x1001a786
cmp eax, dword [ebp + 0xc]
jl 0x1001a81b
jg 0x1001a786
cmp ecx, edx
jb 0x1001a81b
test edi, edi
je 0x1001a800
mov esi, dword [edi]
movzx ecx, word [esi + 8]
movzx eax, word [esi + 6]
add ecx, eax
cmp ecx, 0xd
ja 0x1001a7f0
mov eax, dword [edi + 8]
xor edx, edx
movzx ebx, word [eax + 8]
mov eax, dword [esi + 0x10]
mov cl, byte [eax]
test cl, cl
sete dl
xor eax, eax
test cl, cl
setne al
lea edx, [edx*2 - 1]
lea eax, [eax*2 - 1]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], edx
test bl, 4
je 0x1001a7de
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100264a0
mov byte [edi + 7], 0
jmp 0x1001a807
test bl, 0x19
jne 0x1001a7f0
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x10], 0x100266f0
je 0x1001a7f7
mov dword [ebp - 0x10], 0x10026480
mov esi, dword [ebp - 0xc]
mov byte [edi + 7], 0
jmp 0x1001a807
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.1001a420
test eax, eax
jne 0x1001abb7
cmp byte [esi + 0x49], al
jne 0x1001a82d
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
movsx eax, word [esi + 0x4c]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + eax*4 + 0x78]
mov dword [ebp - 0x14], edx
movzx ebx, word [edx + 0x12]
dec ebx
mov edi, ebx
mov dword [ebp - 0x28], ebx
sar edi, cl
lea ecx, [edx + 0x14]
cmp dword [ebp - 0x10], 0
mov word [esi + eax*2 + 0x4e], di
lea eax, [edx + 0x40]
mov dword [ebp - 8], ecx
lea ecx, [edx + 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x1001a9b1
mov cl, byte [edx + 3]
mov eax, dword [eax]
mov byte [ebp - 1], cl
movzx ecx, byte [edx + 7]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
movzx ecx, byte [eax + edi*2]
mov esi, dword [ebp - 8]
movzx eax, byte [eax + edi*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [esi]
mov esi, dword [ebp - 0xc]
and ecx, eax
mov eax, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
add ecx, dword [eax]
cmp byte [ebp - 1], 0
je 0x1001a8d0
cmp byte [ecx], 0x80
jb 0x1001a8cf
mov eax, dword [edx + 0x3c]
inc ecx
cmp ecx, eax
jae 0x1001ab2a
cmp byte [ecx], 0x80
jae 0x1001a8c1
inc ecx
lea edx, [ebp - 0x38]
call fcn.10008a50
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jg 0x1001a94c
jl 0x1001a8ec
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x1001a94f
lea edx, [edi + 1]
mov dword [ebp - 0x20], edx
cmp edx, ebx
jle 0x1001a964
or esi, 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
cmp byte [ecx + 5], 0
jne 0x1001ab5c
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
movzx eax, word [ecx + 0x12]
cmp edx, eax
jl 0x1001aacd
movzx ecx, byte [ecx + 6]
add ecx, dword [ebx]
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 0x1001ab00
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x1001a97e
jg 0x1001a95a
cmp eax, edx
jbe 0x1001a97e
mov edx, dword [ebp - 0x20]
lea ebx, [edi - 1]
cmp edx, ebx
jg 0x1001a974
mov eax, dword [ebp - 0x30]
lea edi, [ebx + edx]
mov edx, dword [ebp - 0x14]
sar edi, 1
jmp 0x1001a892
mov esi, 1
jmp 0x1001a8f9
or byte [esi + 0x48], 2
mov dword [esi + 0x18], eax
movsx eax, word [esi + 0x4c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov word [esi + eax*2 + 0x4e], di
cmp byte [ecx + 5], 0
jne 0x1001ab4f
mov eax, dword [ebp - 8]
mov edx, edi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], eax
jmp 0x1001a918
mov eax, dword [eax]
movzx ecx, byte [edx + 7]
mov dword [ebp - 0x30], ecx
movzx edx, byte [eax + edi*2]
movzx eax, byte [eax + edi*2 + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
and edx, eax
mov eax, dword [ebp - 0x1c]
add edx, ecx
add edx, dword [eax]
mov eax, dword [ebp - 0x14]
movzx ecx, byte [edx]
lea esi, [edx + 1]
movzx eax, byte [eax + 8]
cmp ecx, eax
ja 0x1001a9fa
push dword [ebp - 0x24]
push esi
push ecx
call dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
jmp 0x1001aa9a
mov al, byte [esi]
test al, al
js 0x1001aa28
and ecx, 0x7f
movzx eax, al
shl ecx, 7
add ecx, eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xa]
cmp ecx, eax
ja 0x1001aa28
push dword [ebp - 0x24]
lea eax, [edx + 2]
push eax
push ecx
call dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
jmp 0x1001aa9a
mov esi, dword [ebp - 0xc]
sub edx, dword [ebp - 0x30]
add esi, 0x18
mov ecx, dword [ebp - 0x14]
push esi
call fcn.10016870
mov esi, dword [esi]
add esp, 4
mov eax, esi
mov dword [ebp - 0x30], esi
cdq
push edx
push eax
call fcn.10004a20
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1001aba3
mov eax, dword [ebp - 0xc]
xor edx, edx
push 2
push ebx
push esi
movsx ecx, word [eax + 0x4c]
mov word [eax + ecx*2 + 0x4e], di
mov ecx, eax
call fcn.10019ed0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1001ab98
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x30]
call dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
push ebx
call fcn.10004e40
mov ebx, dword [ebp - 0x28]
add esp, 4
test esi, esi
jns 0x1001aaa6
lea edx, [edi + 1]
mov dword [ebp - 0x20], edx
jmp 0x1001aab5
jle 0x1001ab71
mov edx, dword [ebp - 0x20]
lea ebx, [edi - 1]
mov dword [ebp - 0x28], ebx
cmp edx, ebx
jg 0x1001a905
mov eax, dword [ebp - 0x18]
lea edi, [ebx + edx]
mov edx, dword [ebp - 0x14]
sar edi, 1
jmp 0x1001a9b1
mov eax, dword [edi]
movzx ecx, byte [eax + edx*2]
movzx eax, byte [eax + edx*2 + 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
and ecx, eax
add ecx, dword [ebx]
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 - 0x20]
shl edx, 8
or edx, eax
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], cx
mov ecx, esi
call fcn.1001a380
mov esi, eax
test esi, esi
jne 0x1001aba8
mov esi, dword [ebp - 0xc]
jmp 0x1001a840
push 0x100f4b6c
push 0xde71
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007190
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [eax], 0
jmp 0x1001aba8
mov ecx, dword [ebp - 0xc]
movsx eax, word [ecx + 0x4c]
mov word [ecx + eax*2 + 0x4e], di
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor esi, esi
jmp 0x1001aba8
mov eax, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
movsx eax, word [ecx + 0x4c]
mov word [ecx + eax*2 + 0x4e], di
mov eax, dword [ebp - 0x24]
cmp byte [eax + 7], 0
je 0x1001aba8
mov esi, 0xb
jmp 0x1001aba8
push ebx
call fcn.10004e40
add esp, 4
jmp 0x1001aba8
mov esi, 7
mov eax, dword [ebp - 0xc]
xor ecx, ecx
and byte [eax + 0x48], 0xf9
mov word [eax + 0x2c], cx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret