Function at 0x436300
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x38]
cmp dword [esi], 0
jne 0x436449
push ebp
mov ebp, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x28]
cmp byte [edi + 1], 0
jne 0x436512
movzx eax, word [edi + 0x10]
lea ecx, [ebp + 2]
cmp ecx, eax
jg 0x436512
mov edx, dword [edi + 0x44]
push edx
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x436350
call fcn.0043d790
jmp 0x436355
call fcn.0043e930
add esp, 4
test eax, eax
je 0x436365
pop edi
pop ebp
mov dword [esi], eax
pop esi
add esp, 0x18
ret
movzx ecx, word [edi + 0xe]
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x1c], edx
push ebx
lea eax, [ecx + eax*2]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea eax, [ecx + eax*2]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 6]
add edx, eax
mov dword [esp + 0x1c], edx
movzx ecx, byte [edx + 5]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x10]
dec ecx
movzx ebx, cx
inc ebx
cmp eax, ebx
jbe 0x4363db
push 0x4f308c
push 0xd48a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0041e040
add esp, 0x10
mov eax, 0xb
mov dword [esi], eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x18
ret
add eax, 2
cmp eax, ebx
ja 0x43642a
cmp byte [edx + 1], 0
jne 0x4363ee
cmp byte [edx + 2], 0
je 0x43642a
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call fcn.0043c5b0
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x436444
cmp dword [esp + 0x18], eax
jne 0x436437
test ecx, ecx
je 0x436426
mov ebx, dword [esp + 0x20]
sub ecx, ebx
jmp 0x436477
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add eax, 2
add eax, ebp
cmp eax, ebx
jle 0x436464
push edi
call fcn.0042b3d0
add esp, 4
test eax, eax
je 0x43644e
mov dword [esi], eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x1c]
movzx ecx, byte [edx + 5]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, ebp
mov eax, ebx
mov byte [edx + 6], bl
sar eax, 8
mov ecx, ebx
mov ebx, dword [esp + 0x20]
mov byte [edx + 5], al
inc word [edi + 0x12]
lea esi, [ebx + ecx]
mov eax, 0xfffe
mov dword [esp + 0x1c], ecx
sub eax, ebp
add word [edi + 0x10], ax
push ebp
mov ebp, dword [esp + 0x38]
push ebp
push esi
call fcn.004c1700
mov eax, dword [esp + 0x4c]
add esp, 0xc
test eax, eax
je 0x4364ae
push eax
push esi
call fcn.00469bc0
add esp, 8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
sub eax, ecx
push eax
lea esi, [ecx + ebx]
lea eax, [esi + 2]
push esi
push eax
call fcn.004c1c80
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov byte [esi + 1], cl
mov eax, ecx
sar eax, 8
mov byte [esi], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x13]
mov byte [ecx + ebx + 3], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x12]
mov byte [ecx + ebx + 4], al
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x436446
push dword [esp + 0x44]
push ebp
push edi
call fcn.00441080
add esp, 0xc
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x18
ret
mov esi, dword [esp + 0x38]
test esi, esi
je 0x43652a
push ebp
push dword [esp + 0x34]
push esi
call fcn.004c1700
add esp, 0xc
jmp 0x43652e
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x436550
mov eax, ecx
mov byte [esi + 3], cl
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov al, byte [edi + 1]
movzx ecx, al
inc al
mov byte [edi + 1], al
mov ax, word [esp + 0x2c]
mov dword [edi + ecx*4 + 0x20], esi
mov word [edi + ecx*2 + 0x16], ax
pop edi
pop ebp
pop esi
add esp, 0x18
ret