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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x49], 1
push edi
jne 0x1003c108
mov dl, byte [esi + 0x48]
test dl, 2
je 0x1003c108
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x1003c108
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x1c]
cmp eax, edi
jne 0x1003c0e6
cmp ecx, dword [ebp + 0x10]
jne 0x1003c0e6
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 8
je 0x1003c108
cmp ecx, dword [ebp + 0x10]
jg 0x1003c108
jl 0x1003c0f6
cmp eax, edi
jae 0x1003c108
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test edi, edi
je 0x1003c11f
mov eax, edi
call fcn.10048450
mov dword [ebp - 0x10], eax
mov byte [edi + 7], 0
jmp 0x1003c126
mov dword [ebp - 0x10], 0
mov eax, esi
call fcn.1003be10
test eax, eax
jne 0x1003c52b
cmp byte [esi + 0x49], al
jne 0x1003c14c
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
jmp 0x1003c160
movsx eax, word [esi + 0x4c]
mov ebx, dword [esi + eax*4 + 0x78]
movzx edx, word [ebx + 0x12]
dec edx
mov dword [ebp - 0x14], edx
sar edx, cl
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], edx
mov word [esi + eax*2 + 0x4e], dx
jne 0x1003c280
mov edi, edi
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + edx*2 + 1]
movzx ecx, byte [ecx + edx*2]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 7]
add eax, ecx
cmp byte [ebx + 3], 0
je 0x1003c1cf
cmp byte [eax], 0x80
jb 0x1003c1ce
mov ecx, dword [ebx + 0x3c]
mov edi, edi
inc eax
cmp eax, ecx
jae 0x1003c459
cmp byte [eax], 0x80
jae 0x1003c1c0
inc eax
lea edi, [ebp - 0x28]
call fcn.10029850
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
cmp eax, edx
jg 0x1003c232
jl 0x1003c1eb
cmp ecx, dword [ebp + 0xc]
jae 0x1003c227
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jle 0x1003c23e
mov dword [ebp - 0xc], 0xffffffff
cmp byte [ebx + 5], 0
jne 0x1003c4d0
movzx eax, word [ebx + 0x12]
mov edx, dword [ebp - 8]
cmp edx, eax
jl 0x1003c3ff
movzx ecx, byte [ebx + 6]
mov eax, dword [ebx + 0x38]
lea eax, [ecx + eax + 8]
jmp 0x1003c41b
cmp eax, edx
jl 0x1003c259
jg 0x1003c232
cmp ecx, dword [ebp + 0xc]
jbe 0x1003c259
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], eax
jg 0x1003c250
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
sar eax, 1
mov dword [ebp - 4], eax
mov edx, eax
jmp 0x1003c190
mov dword [ebp - 0xc], 1
jmp 0x1003c1fe
or byte [esi + 0x48], 2
mov dword [esi + 0x18], ecx
movsx ecx, word [esi + 0x4c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov word [esi + ecx*2 + 0x4e], ax
cmp byte [ebx + 5], 0
jne 0x1003c47e
mov dword [ebp - 8], eax
jmp 0x1003c208
mov eax, dword [ebx + 0x40]
lea ecx, [eax + edx*2]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
movzx edx, byte [ebx + 7]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
movzx ecx, byte [ebx + 8]
add eax, edx
add eax, dword [ebx + 0x38]
movzx edi, byte [eax]
cmp edi, ecx
jg 0x1003c2c1
mov edx, dword [ebp + 8]
push edx
inc eax
push eax
push edi
call dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x1003c3b6
mov cl, byte [eax + 1]
test cl, cl
js 0x1003c2f2
and edi, 0x7f
movzx ecx, cl
shl edi, 7
add edi, ecx
movzx ecx, word [ebx + 0xa]
cmp edi, ecx
jg 0x1003c2f2
mov edx, dword [ebp + 8]
push edx
add eax, 2
push eax
push edi
call dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x1003c3b6
sub eax, edx
push eax
push ebx
lea eax, [esi + 0x18]
call fcn.100383e0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
cdq
add esp, 8
mov edi, eax
or eax, edx
je 0x1003c49c
test edx, edx
ja 0x1003c49c
jb 0x1003c328
cmp edi, 0x7fffff00
jae 0x1003c49c
cmp dword [0x101f0e68], 0
je 0x1003c3c6
mov eax, dword [0x101f77b8]
test eax, eax
je 0x1003c348
push eax
call dword [0x101f0ebc]
add esp, 4
lea ebx, [ebp - 0x18]
mov eax, edi
call fcn.10025930
mov eax, dword [0x101f77b8]
test eax, eax
je 0x1003c365
push eax
call dword [0x101f0ec4]
add esp, 4
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1003c49c
mov eax, dword [ebp - 0xc]
movsx ecx, word [esi + 0x4c]
mov dx, word [ebp - 4]
push 2
push edi
push eax
push 0
mov word [esi + ecx*2 + 0x4e], dx
call fcn.1003b9b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1003c4b4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
push ecx
push edi
push edx
call dword [ebp - 0x10]
add esp, 0xc
push edi
mov dword [ebp - 0xc], eax
call fcn.10025d60
mov ebx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x1003c3d7
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
jmp 0x1003c3e4
push edi
call dword [0x101f0e8c]
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
jmp 0x1003c368
jle 0x1003c4fa
mov ecx, dword [ebp - 4]
dec ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
jg 0x1003c1fe
add eax, dword [ebp - 8]
sar eax, 1
mov dword [ebp - 4], eax
mov edx, eax
jmp 0x1003c280
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + edx*2 + 1]
lea ecx, [ecx + edx*2]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movsx ecx, word [esi + 0x4c]
shl ebx, 8
or ebx, eax
mov word [esi + ecx*2 + 0x4e], dx
call fcn.1003bd70
mov ebx, eax
test ebx, ebx
jne 0x1003c51f
mov ecx, dword [ebp - 0x20]
jmp 0x1003c160
push 0x101de034
push 0xe09e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10027e20
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
xor ebx, ebx
xor edx, edx
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], dx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
and byte [esi + 0x48], 0xf9
mov ebx, 7
mov word [esi + 0x2c], dx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.10025d60
xor edx, edx
add esp, 4
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], dx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x4c]
mov cx, word [ebp - 4]
mov edx, dword [ebp + 0x18]
mov word [esi + eax*2 + 0x4e], cx
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
xor ebx, ebx
xor edx, edx
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], dx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov ax, word [ebp - 4]
mov dword [ecx], 0
movsx edx, word [esi + 0x4c]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov word [esi + edx*2 + 0x4e], ax
cmp byte [ecx + 7], bl
je 0x1003c51f
mov ebx, 0xb
xor edx, edx
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], dx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret