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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
push esi
push edi
mov edi, dword [esp + 0xd0]
push edi
mov dword [esp + 0x40], eax
push str.Page__d:
lea eax, [esp + 0x68]
xor ebp, ebp
push eax
push 0x64
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.00573870
mov esi, dword [ebx]
mov ecx, dword [esi + 0x24]
add esp, 0x10
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ecx
cmp edi, ebp
je 0x59cb30
mov edx, dword [esp + 0x3c]
push edx
mov eax, edi
mov edx, ebx
call fcn.00575940
add esp, 4
test eax, eax
jne 0x59cb30
lea eax, [esp + 0x18]
push ebp
push eax
mov eax, edi
call fcn.00586b70
add esp, 8
cmp eax, ebp
je 0x59cb37
push eax
push str.unable_to_get_the_page._error_code_d
lea edi, [esp + 0x68]
mov esi, ebx
call fcn.005758e0
add esp, 8
xor eax, eax
jmp 0x59d200
mov ebp, dword [esp + 0x18]
mov esi, ebp
mov byte [ebp], 0
call fcn.0057e310
test eax, eax
je 0x59cb6c
push eax
push str.btreeInitPage___returns_error_code__d
lea edi, [esp + 0x68]
mov esi, ebx
call fcn.005758e0
add esp, 8
mov eax, ebp
call fcn.0059a530
xor eax, eax
jmp 0x59d200
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
cmp cx, word [ebp + 0x10]
jae 0x59cd95
cmp dword [ebx + 0x10], 0
je 0x59cd95
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xd0]
push esi
push edx
push str.On_tree_page__d_cell__d:
lea eax, [esp + 0x6c]
push eax
push 0x64
call fcn.00573870
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x40]
movzx edx, byte [ecx + esi*2]
movzx ebp, byte [ecx + esi*2 + 1]
lea eax, [ecx + esi*2]
movzx eax, word [edi + 0x12]
shl edx, 8
or ebp, edx
and ebp, eax
add ebp, dword [edi + 0x38]
push edi
lea eax, [esp + 0x58]
mov ecx, ebp
call fcn.00561f30
mov ebx, dword [esp + 0x64]
add esp, 0x18
cmp byte [edi + 2], 0
jne 0x59cbec
mov ecx, dword [esp + 0x40]
add ebx, ecx
jmp 0x59cc55
test esi, esi
jne 0x59cc0a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jmp 0x59cc55
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x44], ecx
jg 0x59cc45
mov eax, dword [esp + 0x20]
jl 0x59cc20
cmp dword [esp + 0x40], eax
ja 0x59cc45
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x48]
push edx
push eax
push str.Rowid__lld_out_of_order__previous_was__lld_
lea edi, [esp + 0x74]
call fcn.005758e0
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
movzx eax, word [esp + 0x56]
cmp ebx, eax
jbe 0x59cccd
mov edx, dword [esp + 0x14]
movzx ecx, word [esp + 0x58]
mov edx, dword [edx + 0x24]
add edx, dword [edi + 0x38]
add ecx, ebp
cmp ecx, edx
ja 0x59cccd
mov edx, dword [esp + 0x30]
sub ebx, eax
lea eax, [ebx + edx - 5]
lea esi, [edx - 4]
xor edx, edx
div esi
mov edi, eax
call fcn.0055e740
mov esi, eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x11], 0
je 0x59ccb2
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x14]
push esi
mov bl, 3
call fcn.0059c790
add esp, 8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x60]
push edx
push edi
push 0
push eax
mov eax, esi
call fcn.0059c820
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp byte [edi + 3], 0
jne 0x59cd71
movzx esi, byte [ebp]
movzx ecx, byte [ebp + 1]
movzx edx, byte [ebp + 2]
movzx eax, byte [ebp + 3]
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x14]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
cmp byte [ecx + 0x11], 0
je 0x59cd1f
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x60]
push edx
push esi
mov bl, 5
call fcn.0059c790
mov edi, dword [esp + 0x20]
add esp, 8
mov ebp, dword [esp + 0x2c]
mov eax, ebp
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
and eax, ecx
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x68]
push eax
push esi
push ecx
call fcn.0059ca70
add esp, 0x14
mov ebx, eax
test ebp, ebp
jle 0x59cd6d
cmp ebx, dword [esp + 0x3c]
je 0x59cd6d
mov esi, dword [esp + 0x10]
push str.Child_page_depth_differs
lea edi, [esp + 0x64]
call fcn.005758e0
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x2c]
movzx edx, word [edi + 0x10]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0xd0]
inc eax
cmp eax, edx
mov dword [esp + 0x2c], eax
jl 0x59cb82
cmp byte [ebp + 3], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
jne 0x59ce47
movzx eax, byte [ebp + 5]
mov ecx, dword [ebp + 0x38]
movzx esi, byte [eax + ecx + 8]
movzx edx, byte [eax + ecx + 9]
lea eax, [eax + ecx + 8]
movzx ecx, byte [eax + 2]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 3]
push edi
shl esi, 8
or esi, ecx
push str.On_page__d_at_right_child:
lea eax, [esp + 0x68]
push eax
shl esi, 8
push 0x64
or esi, edx
call fcn.00573870
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp byte [ecx + 0x11], 0
je 0x59ce15
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x60]
push edx
push esi
mov bl, 5
call fcn.0059c790
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
add esp, 8
movzx eax, word [ebp + 0x10]
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
and eax, ecx
push eax
push 0
lea edx, [esp + 0x68]
push edx
push esi
push ebx
call fcn.0059ca70
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x14
cmp byte [ebp + 3], 0
je 0x59cf3f
cmp byte [ebp + 2], 0
je 0x59cf3f
test eax, eax
je 0x59cf09
test ecx, ecx
jne 0x59ce8e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x24], eax
jl 0x59cf3f
jg 0x59ce78
cmp dword [esp + 0x20], ecx
jbe 0x59cf3f
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x59cf31
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x38]
cmp edi, edx
mov esi, dword [eax]
jg 0x59cec6
jl 0x59cea3
cmp dword [esp + 0x34], esi
ja 0x59cec6
push edx
mov edx, dword [esp + 0x38]
push esi
push edi
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea edi, [esp + 0x74]
mov esi, ebx
call fcn.005758e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x24]
cmp esi, ecx
jl 0x59cefa
jg 0x59cedb
cmp dword [esp + 0x20], edx
jbe 0x59cefa
mov eax, dword [esp + 0x20]
push ecx
push edx
push esi
push eax
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea edi, [esp + 0x74]
mov esi, ebx
call fcn.005758e0
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x59cf3f
test ecx, ecx
je 0x59cf3f
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dword [esp + 0x38], ecx
jg 0x59cf3f
jl 0x59cf20
cmp dword [esp + 0x34], eax
ja 0x59cf3f
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea edi, [esp + 0x74]
mov esi, ebx
call fcn.005758e0
add esp, 0x14
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + 5]
mov ebx, dword [eax + 0x38]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], edx
call fcn.0056a480
mov ebp, eax
test ebp, ebp
jne 0x59cf70
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x18], 1
jmp 0x59d13d
mov edi, dword [esp + 0x1c]
movzx esi, byte [edi + ebx + 5]
movzx edx, byte [edi + ebx + 6]
mov eax, dword [esp + 0x30]
shl esi, 8
or esi, edx
dec esi
and esi, 0xffff
inc esi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push 0
push ecx
call fcn.005dfd60
push esi
push 1
push ebp
call fcn.005dfd60
movzx edi, byte [edi + ebx + 3]
mov eax, dword [esp + 0x34]
movzx edx, byte [eax + ebx + 4]
mov ecx, dword [esp + 0x30]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 3]
mov ecx, 3
sub ecx, edx
add esp, 0x18
mov dword [esp + 0x28], edi
lea eax, [eax + ecx*4]
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x59d077
add eax, ebx
mov dword [esp + 0x14], eax
jmp 0x59cff0
movzx esi, byte [eax]
movzx edx, byte [eax + 1]
mov ecx, dword [esp + 0x30]
shl esi, 8
or esi, edx
add ecx, 0xfffffffc
cmp esi, ecx
mov eax, 0x10000
jg 0x59d01f
lea eax, [esi + ebx]
push eax
mov eax, dword [esp + 0x1c]
call fcn.00562080
add esp, 4
movzx eax, ax
lea eax, [eax + esi - 1]
cmp eax, dword [esp + 0x30]
jl 0x59d04f
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
push ecx
push edx
push str.Corruption_detected_in_cell__d_on_page__d
xor edi, edi
call fcn.005758e0
mov edi, dword [esp + 0x34]
add esp, 0xc
jmp 0x59d05b
cmp eax, esi
jl 0x59d05b
inc byte [eax + ebp]
dec eax
cmp eax, esi
jge 0x59d053
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 2
cmp ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
jl 0x59cff0
mov edi, dword [esp + 0x1c]
movzx ecx, byte [edi + ebx + 1]
movzx eax, byte [edi + ebx + 2]
shl ecx, 8
or ecx, eax
jle 0x59d0c1
lea esp, [esp]
movzx edx, byte [ebx + ecx + 2]
movzx eax, byte [ebx + ecx + 3]
shl edx, 8
or edx, eax
lea eax, [edx + ecx - 1]
cmp eax, ecx
jl 0x59d0af
inc byte [eax + ebp]
dec eax
cmp eax, ecx
jge 0x59d0a7
movzx edx, byte [ebx + ecx]
movzx eax, byte [ebx + ecx + 1]
shl edx, 8
or edx, eax
mov ecx, edx
jg 0x59d090
mov esi, dword [esp + 0x30]
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
test esi, esi
jle 0x59d113
mov cl, byte [eax + ebp]
test cl, cl
jne 0x59d0db
inc edx
jmp 0x59d0e0
cmp cl, 1
jg 0x59d0eb
inc eax
cmp eax, esi
jl 0x59d0d1
mov dword [esp + 0x14], edx
jmp 0x59d113
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0x10]
push ecx
push eax
push str.Multiple_uses_for_byte__d_of_page__d
xor edi, edi
mov dword [esp + 0x20], edx
call fcn.005758e0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
movzx eax, byte [edi + ebx + 7]
cmp edx, eax
je 0x59d13d
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
xor edi, edi
call fcn.005758e0
add esp, 0x10
mov esi, ebp
call fcn.0055fdd0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x59d1fb
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x59d199
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.005e5510
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
add esp, 0x10
jmp 0x59d19e
call fcn.0055f8e0
cmp dword [esi + 0x78], 0
jne 0x59d1fb
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x59d1fb
mov al, byte [esi + 0xf]
cmp al, 6
je 0x59d1f2
test al, al
je 0x59d1f2
cmp al, 2
jb 0x59d1de
mov eax, dword [0x761204]
test eax, eax
je 0x59d1ca
call eax
mov eax, esi
call fcn.00597590
mov eax, dword [0x761208]
test eax, eax
je 0x59d1f2
call eax
jmp 0x59d1f2
cmp byte [esi + 4], 0
jne 0x59d1f2
push 0
push 0
mov eax, esi
call fcn.0056ae80
add esp, 8
push esi
call fcn.00575320
add esp, 4
mov eax, dword [esp + 0x3c]
inc eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0xb8
ret