Function at 0x41d370
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x5322a8]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], eax
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push str.Page__d:
lea eax, [esp + 0x70]
push eax
push 0x64
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
call fcn.00405b10
mov ebx, dword [edi]
mov ecx, dword [ebx + 0x24]
add esp, 0x10
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
test esi, esi
je 0x41d497
mov edx, dword [esp + 0x28]
push edx
push edi
mov eax, esi
call fcn.0041d050
add esp, 8
test eax, eax
jne 0x41d497
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx]
push esi
xor ecx, ecx
call fcn.00410700
add esp, 8
test eax, eax
jne 0x41d483
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x44], eax
cmp esi, 1
setne al
dec al
mov dword [ebx + 0x48], esi
and al, 0x64
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x34], edx
mov byte [ebx + 5], al
mov esi, ebx
mov dword [esp + 0x20], ebx
mov byte [ebx], 0
call fcn.00415960
test eax, eax
je 0x41d4ae
push eax
push str.btreeInitPage___returns_error_code__d
lea edx, [esp + 0x70]
push edx
push edi
call fcn.0041cfe0
mov eax, dword [ebx + 0x44]
push eax
call fcn.00410a50
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push eax
push str.unable_to_get_the_page._error_code_d
lea ecx, [esp + 0x70]
push ecx
push edi
call fcn.0041cfe0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
cmp cx, word [ebx + 0x10]
jae 0x41d6d9
cmp dword [edi + 0x10], 0
je 0x41d6d9
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
push esi
push edx
push str.On_tree_page__d_cell__d:
lea eax, [esp + 0x74]
push eax
push 0x64
call fcn.00405b10
mov ecx, dword [ebx + 0x40]
movzx edx, byte [ecx + esi*2 + 1]
lea eax, [ecx + esi*2]
movzx esi, byte [eax]
movzx eax, word [ebx + 0x12]
shl esi, 8
or esi, edx
and esi, eax
add esi, dword [ebx + 0x38]
add esp, 0x14
push esi
push ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], esi
call fcn.00415080
mov edi, dword [esp + 0x5c]
add esp, 8
cmp byte [ebx + 2], 0
jne 0x41d529
add edi, dword [esp + 0x48]
jmp 0x41d58b
cmp dword [esp + 0x14], 0
jne 0x41d542
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x41d583
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x4c], ecx
jg 0x41d57b
mov eax, dword [esp + 0x18]
jl 0x41d558
cmp dword [esp + 0x48], eax
ja 0x41d57b
mov edx, dword [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
push eax
push str.Rowid__lld_out_of_order__previous_was__lld_
lea ecx, [esp + 0x7c]
push ecx
push edx
call fcn.0041cfe0
add esp, 0x1c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x5e]
cmp edi, eax
jbe 0x41d623
mov edx, dword [esp + 0x2c]
movzx ecx, word [esp + 0x60]
mov edx, dword [edx + 0x24]
add edx, dword [ebx + 0x38]
add ecx, esi
cmp ecx, edx
ja 0x41d623
mov edx, dword [esp + 0x30]
sub edi, eax
lea eax, [edi + edx - 5]
lea edi, [edx - 4]
xor edx, edx
div edi
movzx edi, byte [ecx]
movzx edx, byte [ecx + 2]
shl edi, 8
mov dword [esp + 0x34], eax
movzx eax, byte [ecx + 1]
or edi, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esp + 0x2c]
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
cmp byte [ecx + 0x11], 0
je 0x41d609
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x68]
push edx
push eax
mov bl, 3
call fcn.0041d0d0
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x28]
add esp, 8
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
mov eax, edi
call fcn.0041d150
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x41d6c0
movzx edi, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x2c]
shl edi, 8
or edi, ecx
shl edi, 8
or edi, edx
cmp byte [eax + 0x11], 0
je 0x41d670
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x68]
push ecx
push edx
mov bl, 5
call fcn.0041d0d0
mov ebx, dword [esp + 0x28]
add esp, 8
mov esi, dword [esp + 0x14]
mov eax, esi
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, ecx
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x70]
push eax
push edi
push ecx
call fcn.0041d370
add esp, 0x14
mov edi, eax
test esi, esi
jle 0x41d6bc
cmp edi, dword [esp + 0x28]
je 0x41d6bc
mov eax, dword [esp + 0xc]
push str.Child_page_depth_differs
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.0041cfe0
add esp, 0xc
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
movzx ecx, word [ebx + 0x10]
mov edi, dword [esp + 0xc]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x41d4c4
cmp byte [ebx + 3], 0
mov esi, dword [esp + 0x10]
jne 0x41d786
movzx edx, byte [ebx + 5]
mov eax, dword [ebx + 0x38]
movzx edi, byte [edx + eax + 8]
movzx ecx, byte [edx + eax + 9]
lea eax, [edx + eax + 8]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edi, 8
or edi, ecx
mov ecx, dword [ebp + 0xc]
shl edi, 8
push ecx
or edi, edx
push str.On_page__d_at_right_child:
lea edx, [esp + 0x70]
push edx
shl edi, 8
push 0x64
or edi, eax
call fcn.00405b10
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp byte [eax + 0x11], 0
je 0x41d750
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x68]
push ecx
push edx
mov bl, 5
call fcn.0041d0d0
mov ebx, dword [esp + 0x28]
add esp, 8
movzx eax, word [ebx + 0x10]
neg eax
sbb eax, eax
lea ecx, [esp + 0x18]
and eax, ecx
push eax
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x70]
push edx
push edi
push eax
call fcn.0041d370
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add esp, 0x14
cmp byte [ebx + 3], 0
je 0x41d880
cmp byte [ebx + 2], 0
je 0x41d880
test esi, esi
je 0x41d848
mov edx, dword [esp + 0x24]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
jne 0x41d7d6
cmp dword [esp + 0x1c], eax
jl 0x41d880
jg 0x41d7bb
cmp dword [esp + 0x18], ecx
jbe 0x41d880
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
lea eax, [esp + 0x7c]
push eax
jmp 0x41d877
cmp dword [esp + 0x3c], eax
jg 0x41d807
jl 0x41d7e4
cmp dword [esp + 0x38], ecx
ja 0x41d807
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.0041cfe0
mov edx, dword [esp + 0x40]
add esp, 0x1c
mov eax, dword [edx + 4]
mov ecx, dword [edx]
cmp dword [esp + 0x1c], eax
jl 0x41d839
jg 0x41d81a
cmp dword [esp + 0x18], ecx
jbe 0x41d839
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.0041cfe0
add esp, 0x1c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp 0x41d880
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41d880
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jg 0x41d880
jl 0x41d865
cmp dword [esp + 0x38], ecx
ja 0x41d880
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.0041cfe0
add esp, 0x1c
movzx eax, byte [ebx + 5]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x10], edx
call fcn.0040bc00
mov esi, eax
test esi, esi
jne 0x41d8ad
mov dword [edi + 0x18], 1
jmp 0x41da6a
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
movzx edi, byte [ecx + eax + 5]
movzx edx, byte [ecx + eax + 6]
mov eax, dword [esp + 0x30]
shl edi, 8
or edi, edx
dec edi
and edi, 0xffff
inc edi
sub eax, edi
push eax
lea ecx, [edi + esi]
push 0
push ecx
call fcn.004e7d90
add esp, 0xc
push edi
push 1
push esi
call fcn.004e7d90
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
movzx eax, byte [ecx + edx + 3]
movzx edx, byte [ecx + edx + 4]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 3]
mov edi, 3
sub edi, edx
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x34], eax
lea ecx, [ecx + edi*4]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x41d9b2
add ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
movzx edi, byte [eax]
movzx ecx, byte [eax + 1]
shl edi, 8
or edi, ecx
lea ecx, [edx - 4]
mov eax, 0x10000
cmp edi, ecx
jg 0x41d967
mov edx, dword [esp + 0x10]
lea eax, [edi + edx]
push eax
mov eax, ebx
call fcn.004151b0
mov edx, dword [esp + 0x34]
add esp, 4
movzx eax, ax
lea eax, [eax + edi - 1]
cmp eax, edx
jl 0x41d992
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
push edx
push str.Corruption_detected_in_cell__d_on_page__d
push 0
push eax
call fcn.0041cfe0
mov edx, dword [esp + 0x44]
add esp, 0x14
jmp 0x41d99e
cmp eax, edi
jl 0x41d99e
inc byte [eax + esi]
dec eax
cmp eax, edi
jge 0x41d996
mov eax, dword [esp + 0x14]
add dword [esp + 0x24], 2
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jl 0x41d932
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
movzx ecx, byte [edi + eax + 1]
movzx edi, byte [edi + eax + 2]
shl ecx, 8
or ecx, edi
jle 0x41da03
jmp 0x41d9d0
movzx edi, byte [eax + ecx + 2]
movzx eax, byte [eax + ecx + 3]
shl edi, 8
or edi, eax
lea eax, [edi + ecx - 1]
cmp eax, ecx
jl 0x41d9ef
inc byte [eax + esi]
dec eax
cmp eax, ecx
jge 0x41d9e7
mov eax, dword [esp + 0x10]
movzx edi, byte [eax + ecx]
movzx ecx, byte [eax + ecx + 1]
shl edi, 8
or ecx, edi
jg 0x41d9d0
xor edi, edi
xor eax, eax
test edx, edx
jle 0x41da3f
jmp 0x41da10
mov cl, byte [eax + esi]
test cl, cl
jne 0x41da1a
inc edi
jmp 0x41da1f
cmp cl, 1
jg 0x41da26
inc eax
cmp eax, edx
jl 0x41da10
jmp 0x41da3f
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.Multiple_uses_for_byte__d_of_page__d
push 0
push eax
call fcn.0041cfe0
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
movzx eax, byte [ecx + edx + 7]
cmp edi, eax
je 0x41da6a
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
push ecx
push eax
push edi
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
push 0
push edx
call fcn.0041cfe0
add esp, 0x18
call fcn.0040bd00
mov ebx, dword [ebx + 0x44]
test ebx, ebx
je 0x41db22
test byte [ebx + 0x18], 0x40
mov esi, dword [ebx + 0x10]
je 0x41dac0
mov eax, dword [esi + 0x88]
dec dword [esi + 0x78]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], ebx
mov ecx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx + 0x14]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004f1060
push edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
push edi
call edx
add esp, 0x10
jmp 0x41dac7
mov eax, ebx
call fcn.0040b740
cmp dword [esi + 0x78], 0
jne 0x41db22
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41db22
mov al, byte [esi + 0xf]
cmp al, 6
je 0x41db1b
test al, al
je 0x41db1b
cmp al, 2
jb 0x41db07
mov eax, dword [0x53b510]
test eax, eax
je 0x41daf3
call eax
mov eax, esi
call fcn.004112f0
mov eax, dword [0x53b514]
test eax, eax
je 0x41db1b
call eax
jmp 0x41db1b
cmp byte [esi + 4], 0
jne 0x41db1b
push 0
push 0
mov ebx, esi
call fcn.0040dd30
add esp, 8
mov ebx, esi
call fcn.0040dbe0
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret