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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], ebx
cmp byte [ebx], 0
jne 0x41ff26
mov dl, byte [ebx + 1]
test dl, 2
je 0x41ff26
mov ecx, dword [ebx + 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
cmp ecx, edi
jne 0x41fec9
cmp eax, dword [ebp + 0xc]
jne 0x41fecc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [ebp + 0xc]
jg 0x41ff26
jl 0x41fed4
cmp ecx, edi
jae 0x41ff26
test dl, 8
jne 0x41ff3a
add ecx, 1
adc eax, 0
cmp ecx, edi
jne 0x41ff26
cmp eax, dword [ebp + 0xc]
jne 0x41ff26
mov eax, dword [ebp + 0x10]
push 0
push ebx
mov dword [eax], 0
call fcn.004206e0
add esp, 8
test eax, eax
jne 0x41ff1d
mov ecx, ebx
call fcn.0041f300
cmp dword [ebx + 0x20], edi
jne 0x41ff26
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x24], eax
jne 0x41ff26
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x42013b
mov ecx, ebx
call fcn.0041fa90
test eax, eax
je 0x41ff4c
cmp eax, 0x10
jne 0x42013b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
lea edi, [ebx + 0x74]
sub eax, esi
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edx, dword [edi]
mov ecx, eax
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0xc], edx
movzx ebx, word [edx + 0x18]
dec ebx
mov esi, ebx
sar esi, cl
mov word [eax + 0x46], si
mov cl, byte [edx + 2]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], cl
mov ax, word [eax + esi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x44]
cmp byte [ebp - 1], 0
je 0x41ffb6
cmp byte [ecx], 0x80
jb 0x41ffb5
mov eax, dword [edx + 0x3c]
inc ecx
cmp ecx, eax
jae 0x4200c6
cmp byte [ecx], 0x80
jae 0x41ffa7
inc ecx
lea edx, [ebp - 0x20]
call fcn.00408d40
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0xc]
jg 0x41ffde
jl 0x41ffd2
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x41ffe1
lea edi, [esi + 1]
cmp edi, ebx
jle 0x41fff3
or eax, 0xffffffff
jmp 0x420005
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x420029
jg 0x41ffec
cmp eax, edx
jbe 0x420029
lea ebx, [esi - 1]
cmp edi, ebx
jg 0x420000
mov edx, dword [ebp - 0xc]
lea esi, [ebx + edi]
mov eax, dword [ebp - 0x10]
sar esi, 1
jmp 0x41ff85
mov eax, 1
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
cmp byte [edx + 8], 0
je 0x42003f
mov ecx, dword [ebp + 0x10]
mov word [ebx + 0x46], si
mov dword [ecx], eax
xor eax, eax
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [ebx + 0x46], si
cmp byte [edx + 8], 0
jne 0x420120
mov edi, esi
movzx eax, word [edx + 0x18]
cmp edi, eax
jl 0x420054
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x42006e
mov eax, dword [edx + 0x40]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax]
mov al, byte [ebx + 0x44]
mov esi, dword [ebx + 0x14]
movzx ecx, di
mov word [ebx + 0x46], cx
cmp al, 0x13
jge 0x4200f0
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x32], di
lea edi, [ebx + 0x74]
bswap edx
mov word [ebx + eax*2 + 0x48], cx
movsx ecx, byte [ebx + 0x44]
mov eax, dword [edi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
inc byte [ebx + 0x44]
mov ecx, esi
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
call fcn.0041c210
add esp, 0xc
test eax, eax
jne 0x420113
mov eax, dword [ebp - 0x14]
jmp 0x41ff60
push 0x4e1734
push 0x115e0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004072e0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4e1734
push 0x11456
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004072e0
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x20], eax
xor eax, eax
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x24], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret