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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x34]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
cmp byte [edi + 3], al
jne 0x41ae1d
lea ebx, [eax + 4]
cmp byte [edi + 4], al
je 0x41ae7f
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
lea eax, [ecx + edx]
cmp eax, 0x80
jae 0x41ae46
mov eax, dword [ebp + 8]
add cl, dl
mov byte [ebx + eax], cl
mov eax, 1
movzx eax, al
add ebx, eax
jmp 0x41ae85
mov ecx, dword [ebp + 8]
add ecx, ebx
test eax, 0xffffc000
jne 0x41ae6d
mov edx, eax
and al, 0x7f
mov byte [ecx + 1], al
mov eax, 2
shr edx, 7
movzx eax, al
or dl, 0x80
mov byte [ecx], dl
add ebx, eax
jmp 0x41ae85
push 0
push eax
call fcn.00407290
movzx eax, al
add esp, 8
add ebx, eax
jmp 0x41ae85
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edx
add ecx, ebx
push eax
call fcn.00407290
mov ecx, dword [ebp + 8]
push ecx
add ebx, eax
push edi
lea eax, [esp + 0x48]
call fcn.00415b30
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
add esp, 0x10
cmp byte [edi + 2], 0
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
je 0x41aed3
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, ecx
mov dword [esp + 0x10], edx
mov dword [ebp + 0x1c], 0
jmp 0x41af09
cmp dword [ebp + 0x14], 0
jg 0x41b164
mov ecx, dword [ebp + 0x10]
jl 0x41aeee
cmp ecx, 0x7fffffff
ja 0x41b164
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41b164
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, ecx
movzx ecx, word [esp + 0x52]
mov edi, dword [ebp + 0x24]
add ebx, dword [ebp + 8]
mov dword [edi], ecx
movzx ecx, word [esp + 0x50]
add ecx, dword [ebp + 8]
movzx edi, word [esp + 0x4e]
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x41b140
jmp 0x41af3d
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x41b0d1
cmp byte [esi + 0x11], 0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x34], edi
je 0x41afa5
mov ebx, dword [0x4d7828]
inc edi
cmp edi, 2
jae 0x41af63
xor ecx, ecx
jmp 0x41af91
mov eax, 0xcccccccd
mul dword [esi + 0x24]
mov esi, edx
shr esi, 2
inc esi
xor edx, edx
lea eax, [edi - 2]
div esi
xor edx, edx
mov ecx, eax
imul ecx, esi
mov esi, dword [esp + 0x18]
mov eax, ebx
div dword [esi + 0x20]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x41af91
inc ecx
cmp ecx, edi
je 0x41af59
xor edx, edx
mov eax, ebx
div dword [esi + 0x20]
inc eax
cmp edi, eax
je 0x41af59
mov dword [esp + 0x20], edi
push 0
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0041a070
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
add esp, 0x14
cmp byte [esi + 0x11], 0
mov dword [esp + 0x24], eax
je 0x41b00a
test eax, eax
jne 0x41b149
mov eax, dword [esp + 0x34]
test eax, eax
lea ecx, [esp + 0x24]
push ecx
setne dl
push eax
add dl, 3
movzx eax, dl
push eax
mov eax, ebx
mov ecx, esi
call fcn.004158f0
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x41b015
test edi, edi
je 0x41b00a
mov eax, dword [edi + 0x44]
call fcn.004113b0
cmp dword [esp + 0x24], 0
jne 0x41b149
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov byte [eax + 3], bl
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41b0ac
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x41b088
dec dword [esi + 0x78]
mov edx, dword [esi + 0x88]
mov dword [eax + 0xc], edx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov ecx, dword [eax + 4]
mov ebx, dword [edi]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x41b08d
call fcn.0040bd50
cmp dword [esi + 0x78], 0
jne 0x41b0a8
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x41b0a8
push esi
call fcn.0040e5d0
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0x38]
mov edx, dword [esp + 0x10]
mov dword [eax], 0
mov ebx, dword [edi + 0x38]
mov dword [esp + 0x28], edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
add ebx, 4
sub edi, 4
mov esi, eax
cmp eax, edi
jle 0x41b0d9
mov esi, edi
test edx, edx
jle 0x41b0f1
cmp esi, edx
jle 0x41b0e3
mov esi, edx
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push ebx
call fcn.0049d5c0
jmp 0x41b0fa
push esi
push 0
push ebx
call fcn.0049d4a0
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x20], esi
add dword [esp + 0x28], esi
sub eax, esi
add esp, 0xc
add ebx, esi
sub edi, esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41b125
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], 0
jg 0x41af31
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41b140
mov eax, dword [eax + 0x44]
call fcn.004113b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41b159
mov eax, dword [eax + 0x44]
call fcn.004113b0
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c917c
push 0xdb03
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00405d90
add esp, 0x10
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret