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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ebx
push edi
test esi, esi
jne 0x10047070
cmp byte [ebx], dl
jne 0x10047067
mov dl, byte [ebx + 1]
test dl, 2
je 0x10047067
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
mov edi, dword [ebp + 0xc]
cmp ecx, esi
jne 0x10047005
cmp eax, edi
jne 0x10047007
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, edi
jg 0x10047067
jl 0x1004700f
cmp ecx, esi
jae 0x10047067
test dl, 8
jne 0x100470d5
add ecx, 1
adc eax, 0
cmp ecx, esi
jne 0x10047067
cmp eax, edi
jne 0x10047067
cmp dword [ebx + 4], 0
jne 0x10047067
mov eax, dword [ebp + 0x14]
push 0
push ebx
mov dword [eax], 0
call fcn.10047650
add esp, 8
test eax, eax
jne 0x1004705e
mov ecx, ebx
call fcn.10046560
cmp dword [ebx + 0x20], esi
jne 0x10047067
cmp dword [ebx + 0x24], edi
jne 0x10047067
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x10047515
mov dword [ebp - 0xc], 0
jmp 0x100470c1
mov ecx, dword [esi]
cmp word [ecx + 8], 0xd
ja 0x100470b6
mov eax, dword [esi + 4]
movzx edx, word [eax + 8]
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0
je 0x10047090
mov word [esi + 0xc], 0xff01
jmp 0x10047096
mov word [esi + 0xc], 0x1ff
test dl, 4
je 0x100470a4
mov dword [ebp - 0xc], 0x10053eb0
jmp 0x100470bd
test dl, 0x19
jne 0x100470b6
cmp dword [ecx + 0x14], 0
mov dword [ebp - 0xc], 0x100540e0
je 0x100470bd
mov dword [ebp - 0xc], 0x10053e90
mov byte [esi + 0xb], 0
mov ecx, ebx
call fcn.10046c70
test eax, eax
je 0x100470e7
cmp eax, 0x10
jne 0x10047515
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]
add ebx, 0x74
mov dword [ebp - 0x28], eax
mov edi, dword [ebx]
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], edi
movzx esi, word [edi + 0x16]
dec esi
mov ebx, esi
mov dword [ebp - 0x20], esi
sar ebx, cl
cmp dword [ebp - 0xc], 0
mov word [eax + 0x46], bx
jne 0x100471f4
mov cl, byte [edi + 3]
mov byte [ebp - 1], cl
mov eax, dword [edi + 0x40]
movzx edx, word [edi + 0x18]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, dx
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x44]
cmp byte [ebp - 1], 0
je 0x1004715f
cmp byte [ecx], 0x80
jb 0x1004715e
mov eax, dword [edi + 0x3c]
nop dword [eax]
inc ecx
cmp ecx, eax
jae 0x100473ec
cmp byte [ecx], 0x80
jae 0x10047150
inc ecx
lea edx, [ebp - 0x30]
call fcn.10033b00
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jg 0x100471b3
jl 0x1004717b
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x100471b6
lea edx, [ebx + 1]
mov dword [ebp - 0x10], edx
cmp edx, esi
jle 0x100471cb
or edi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 8], 0
jne 0x10047447
mov edi, eax
movzx eax, word [edi + 0x16]
cmp edx, eax
jl 0x1004736f
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x10047389
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x100471dc
jg 0x100471c1
cmp eax, edx
jbe 0x100471dc
mov edx, dword [ebp - 0x10]
lea esi, [ebx - 1]
cmp edx, esi
jg 0x100471d5
lea ebx, [esi + edx]
sar ebx, 1
jmp 0x10047124
mov edi, 1
jmp 0x10047188
mov edx, dword [ebp - 8]
mov word [edx + 0x46], bx
cmp byte [edi + 8], 0
jne 0x10047416
mov edx, ebx
mov dword [ebp - 0x10], edx
jmp 0x10047197
mov eax, dword [edi + 0x40]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
movzx eax, byte [edi + 0xb]
add ecx, dword [edi + 0x44]
movzx edx, byte [ecx]
cmp edx, eax
ja 0x1004722b
push dword [ebp - 0x14]
lea eax, [ecx + 1]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
jmp 0x1004733f
mov al, byte [ecx + 1]
test al, al
js 0x1004725a
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [edi + 0xe]
cmp edx, eax
ja 0x1004725a
push dword [ebp - 0x14]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
jmp 0x1004733f
mov esi, dword [ebp - 8]
movzx eax, byte [edi + 0xa]
add esi, 0x20
sub ecx, eax
mov eax, dword [edi + 0x50]
push esi
push ecx
push edi
call eax
mov edi, dword [esi]
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp edi, 2
jl 0x100474e7
lea eax, [edi + 0x12]
cdq
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x100474d0
test edx, edx
ja 0x100474d0
jb 0x100472a5
cmp esi, 0x7fffff00
jae 0x100474d0
cmp dword [0x1013df98], 0
je 0x100472e5
mov eax, dword [0x10140040]
test eax, eax
je 0x100472c1
push eax
call dword [0x1013dff4]
add esp, 4
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.1002f5d0
mov eax, dword [0x10140040]
test eax, eax
je 0x100472e0
push eax
call dword [0x1013dffc]
mov esi, dword [ebp - 0x18]
jmp 0x100472f1
mov esi, dword [ebp - 0x18]
jmp 0x100472f4
push esi
call dword [0x1013dfc4]
mov esi, eax
mov dword [ebp - 0x18], esi
add esp, 4
test esi, esi
je 0x100474d0
mov eax, dword [ebp - 8]
xor edx, edx
push 0
push esi
push edi
mov ecx, eax
mov word [eax + 0x46], bx
call fcn.100467b0
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 8]
and byte [eax + 1], 0xfb
test edi, edi
jne 0x100474b5
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x24]
call dword [ebp - 0xc]
add esp, 0xc
mov edi, eax
push esi
call fcn.1002f800
mov esi, dword [ebp - 0x20]
add esp, 4
test edi, edi
jns 0x1004734b
lea edx, [ebx + 1]
mov dword [ebp - 0x10], edx
jmp 0x1004735a
jle 0x10047464
mov edx, dword [ebp - 0x10]
lea esi, [ebx - 1]
mov dword [ebp - 0x20], esi
cmp edx, esi
jg 0x10047188
mov edi, dword [ebp - 0x1c]
lea ebx, [esi + edx]
sar ebx, 1
jmp 0x100471f4
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
bswap edx
mov al, byte [edi + 0x44]
mov ecx, dword [edi + 0x14]
mov word [edi + 0x46], si
cmp al, 0x13
jge 0x10047438
and byte [edi + 1], 0xf9
xor ebx, ebx
movsx eax, al
mov word [edi + 0x32], bx
lea ebx, [edi + 0x74]
mov word [edi + eax*2 + 0x48], si
movsx esi, byte [edi + 0x44]
mov eax, dword [ebx]
mov dword [edi + esi*4 + 0x78], eax
xor eax, eax
inc byte [edi + 0x44]
mov word [edi + 0x46], ax
movzx eax, byte [edi + 2]
push eax
push edi
push ebx
call fcn.10043f70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004750a
mov eax, dword [ebp - 0x28]
jmp 0x100470f5
push 0x1013747c
push 0x1073e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10032090
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [edx + 1], 2
mov dword [edx + 0x20], eax
xor eax, eax
mov word [edx + 0x32], ax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x24], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1013747c
push 0x105a3
jmp 0x100474f1
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 8]
mov dword [eax], edi
xor edi, edi
xor eax, eax
mov word [esi + 0x46], bx
mov word [esi + 0x32], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor edi, edi
mov esi, dword [ebp - 8]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov word [esi + 0x46], bx
cmp byte [eax + 0xb], 0
je 0x1004750d
push 0x1013747c
push 0x107a7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10032090
add esp, 0x14
mov edi, 0xb
xor eax, eax
mov word [esi + 0x32], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1002f800
mov esi, dword [ebp - 8]
add esp, 4
xor eax, eax
mov word [esi + 0x32], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
xor eax, eax
mov edi, 7
mov word [esi + 0x32], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1013747c
push 0x10788
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10032090
mov edi, 0xb
add esp, 0x14
mov esi, dword [ebp - 8]
xor eax, eax
mov word [esi + 0x32], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret