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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov al, byte [edi]
test al, al
je 0x1003a8be
cmp al, 3
jb 0x1003a904
call fcn.10031020
mov esi, eax
test esi, esi
jne 0x1003adc1
cmp byte [edi], al
jne 0x1003adc1
mov ebp, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x2c], eax
movzx eax, word [ebp + 0x18]
mov dword [esp + 0x20], ecx
cmp eax, ecx
ja 0x1003a92f
push 0x10131d5c
push 0x13050
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10131d5c
push 0x13047
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], ecx
jge 0x1003a98a
mov ecx, ebp
call fcn.10032270
test eax, eax
je 0x1003a986
push 0x10131d5c
push 0x13054
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x17]
shr al, 1
and al, 1
mov byte [esp + 0x17], al
je 0x1003a9e8
cmp byte [ebp + 8], 0
je 0x1003a9d7
mov eax, dword [ebp + 0x4c]
push ecx
push ebp
call eax
movzx esi, ax
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov eax, dword [ebp + 0x14]
add eax, 2
shr edx, 1
add eax, esi
cmp eax, edx
jg 0x1003a9d7
cmp word [ebp + 0x18], 1
je 0x1003a9d7
mov byte [esp + 0x17], 2
jmp 0x1003a9e8
mov ecx, edi
call fcn.10030da0
mov esi, eax
test esi, esi
jne 0x1003adc1
cmp byte [ebp + 8], 0
jne 0x1003aa26
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x1003aa17
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x1003aa17
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x1003aa17
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x1003aa26
mov ecx, edi
call fcn.100361e0
test eax, eax
jne 0x1003adc3
mov al, byte [edi + 1]
test al, 0x20
je 0x1003aa59
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x40]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1003aa54
nop dword [eax + eax]
cmp ecx, edi
je 0x1003aa4d
test edx, edx
je 0x1003aac4
cmp dword [ecx + 0x40], edx
je 0x1003aac4
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x1003aa40
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x1003aaa3
cmp byte [ebx + 0xb], 0
je 0x1003aaa3
mov eax, dword [ebx + 4]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
mov byte [ebx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x1003aaa3
nop dword [eax]
test byte [eax + 1], 0x10
je 0x1003aa9c
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x1003aa9c
cmp dword [eax + 0x20], edx
jne 0x1003aa9c
cmp dword [eax + 0x24], esi
jne 0x1003aa9c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1003aa80
mov ecx, dword [ebp + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1003aadd
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003aadd
cmp dword [edx + 0x68], 0
je 0x1003ab0a
call fcn.1002b380
jmp 0x1003ab02
test ecx, ecx
je 0x1003aa54
push edi
call fcn.10030eb0
add esp, 4
test eax, eax
je 0x1003aa59
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x1003adc3
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003aafd
call fcn.1002cdd0
jmp 0x1003ab02
call fcn.1002cd40
test eax, eax
jne 0x1003adc3
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebp + 0x50]
push esi
push ebp
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0x1003ab3b
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebp
call fcn.10036e90
add esp, 4
jmp 0x1003ab3d
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.100373c0
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
jne 0x1003adc1
cmp byte [ebp + 8], 0
jne 0x1003aca6
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], esi
jge 0x1003ab89
mov ecx, ebx
call fcn.10032270
mov esi, eax
test esi, esi
jne 0x1003adc1
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jge 0x1003ab9c
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x1003ab9f
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [ebx + 0x18]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx esi, cx
and esi, eax
lea eax, [edx + 4]
add esi, edx
cmp esi, eax
jae 0x1003abf6
push 0x10131d5c
push 0x130af
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov ecx, dword [ebx + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x1c], eax
je 0x1003ac33
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003ac33
cmp dword [edx + 0x68], 0
je 0x1003ac5c
call fcn.1002b380
jmp 0x1003ac54
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x1003ac7e
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003ac4f
call fcn.1002cdd0
jmp 0x1003ac54
call fcn.1002cd40
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1003ac82
push dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, ebp
push dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add eax, 4
push eax
lea eax, [esi - 4]
push eax
call fcn.100374e0
add esp, 0x10
mov dword [esp + 0x18], eax
movzx edx, word [ebx + 0x18]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
dec edx
mov ecx, ebx
call fcn.100373c0
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
jne 0x1003adc1
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x28]
mov eax, dword [edi + 0x74]
add ecx, ecx
mov eax, dword [eax + 0x14]
lea eax, [eax + eax*2]
cmp eax, ecx
jg 0x1003acbf
xor esi, esi
jmp 0x1003acd0
mov ecx, edi
call fcn.10039730
mov esi, eax
test esi, esi
jne 0x1003adc1
movsx eax, byte [edi + 0x44]
mov ebx, dword [esp + 0x2c]
cmp eax, ebx
jle 0x1003ad29
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
dec byte [edi + 0x44]
mov dl, byte [edi + 0x44]
movsx eax, dl
cmp eax, ebx
jle 0x1003ad16
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x1003ad0f
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
mov dl, byte [edi + 0x44]
movsx eax, dl
cmp eax, ebx
jg 0x1003acf4
movsx eax, dl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.10039730
mov esi, eax
test esi, esi
jne 0x1003adc1
mov bl, byte [esp + 0x17]
cmp bl, 1
jbe 0x1003ad73
mov byte [edi], 2
movzx eax, word [ebp + 0x18]
cmp dword [esp + 0x20], eax
jb 0x1003ad62
mov dword [edi + 4], 0xffffffff
mov ax, word [ebp + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100355a0
mov esi, eax
test bl, bl
je 0x1003adb9
mov al, byte [edi + 0x44]
test al, al
js 0x1003adb6
xor ebx, ebx
test al, al
jle 0x1003ada7
lea ebp, [edi + 0x78]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
movsx eax, byte [edi + 0x44]
lea ebp, [ebp + 4]
inc ebx
cmp ebx, eax
jl 0x1003ad90
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
mov byte [edi + 0x44], 0xff
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret