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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x436d5f
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x436d56
mov dl, byte [esi + 1]
test dl, 2
je 0x436d56
mov ecx, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0x14]
cmp ecx, edi
jne 0x436cf2
cmp eax, ebx
jne 0x436cf4
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jg 0x436d56
jl 0x436cfc
cmp ecx, edi
jae 0x436d56
test dl, 8
jne 0x436dc9
add ecx, 1
adc eax, 0
cmp ecx, edi
jne 0x436d56
cmp eax, ebx
jne 0x436d56
cmp dword [esi + 0x40], 0
jne 0x436d56
mov eax, dword [ebp + 0x1c]
push 0
push esi
mov dword [eax], 0
call fcn.00437180
add esp, 8
test eax, eax
jne 0x436d4d
push esi
call fcn.00423e10
add esp, 4
cmp dword [esi + 0x18], edi
jne 0x436d56
cmp dword [esi + 0x1c], ebx
jne 0x436d56
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x437170
mov dword [ebp - 8], 0
jmp 0x436db3
mov ecx, dword [ebx]
cmp word [ecx + 8], 0xd
ja 0x436da5
mov eax, dword [ebx + 4]
movzx edx, word [eax + 8]
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0
je 0x436d7f
mov word [ebx + 0xc], 0xff01
jmp 0x436d85
mov word [ebx + 0xc], 0x1ff
test dl, 4
je 0x436d93
mov dword [ebp - 8], 0x46e810
jmp 0x436dac
test dl, 0x19
jne 0x436da5
cmp dword [ecx + 0x14], 0
mov dword [ebp - 8], 0x46e9e0
je 0x436dac
mov dword [ebp - 8], 0x462fd0
mov esi, dword [ebp + 8]
mov byte [ebx + 0xb], 0
push esi
call fcn.004276c0
add esp, 4
test eax, eax
je 0x436ddb
cmp eax, 0x10
jne 0x437170
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
lea edi, [esi + 0x74]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov edx, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov dword [ebp - 0xc], edx
movzx ebx, word [edx + 0x16]
dec ebx
mov edi, ebx
mov dword [ebp - 0x14], ebx
sar edi, cl
cmp dword [ebp - 8], 0
mov word [esi + 0x46], di
jne 0x436ef2
mov al, byte [edx + 3]
mov esi, dword [edx + 0x40]
mov byte [ebp - 1], al
nop
mov ax, word [esi + edi*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [edx + 0x18]
and eax, ecx
add eax, dword [edx + 0x44]
cmp byte [ebp - 1], 0
je 0x436e51
cmp byte [eax], 0x80
jb 0x436e50
mov ecx, dword [edx + 0x3c]
inc eax
cmp eax, ecx
jae 0x437080
cmp byte [eax], 0x80
jae 0x436e42
inc eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00446020
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x14]
jg 0x436eab
jl 0x436e72
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x436eae
lea ecx, [edi + 1]
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
jle 0x436ec3
or esi, 0xffffffff
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
cmp byte [edx + 8], 0
jne 0x4370d8
movzx eax, word [edx + 0x16]
cmp ecx, eax
jl 0x437003
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x43701d
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x436ed7
jg 0x436eb9
cmp eax, edx
jbe 0x436ed7
mov ecx, dword [ebp - 0x10]
lea ebx, [edi - 1]
cmp ecx, ebx
jg 0x436ed0
mov edx, dword [ebp - 0xc]
lea edi, [ebx + ecx]
sar edi, 1
jmp 0x436e20
mov esi, 1
jmp 0x436e7f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov word [ebx + 0x46], di
cmp byte [edx + 8], 0
jne 0x4370aa
mov ecx, edi
mov dword [ebp - 0x10], ecx
jmp 0x436e8f
mov eax, dword [edx + 0x40]
mov esi, dword [ebp - 0xc]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
movzx eax, byte [esi + 0xb]
add ecx, dword [edx + 0x44]
movzx edx, byte [ecx]
cmp edx, eax
ja 0x436f2c
push dword [ebp + 0xc]
lea eax, [ecx + 1]
push eax
push edx
call dword [ebp - 8]
add esp, 0xc
mov esi, eax
jmp 0x436fd3
mov al, byte [ecx + 1]
test al, al
js 0x436f58
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [esi + 0xe]
cmp edx, eax
ja 0x436f58
push dword [ebp + 0xc]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 8]
add esp, 0xc
mov esi, eax
jmp 0x436fd3
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
movzx eax, byte [edx + 0xa]
lea esi, [ebx + 0x18]
sub ecx, eax
mov eax, dword [edx + 0x50]
push esi
push ecx
push edx
call eax
mov esi, dword [esi]
add esp, 0xc
cmp esi, 2
jl 0x437147
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.00449f50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x437132
mov eax, dword [ebp + 8]
push 0
push ebx
push esi
push 0
push eax
mov word [eax + 0x46], di
call fcn.00411a10
mov ecx, dword [ebp + 8]
add esp, 0x14
mov dword [ebp - 0x1c], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x437116
push dword [ebp + 0xc]
push ebx
push esi
call dword [ebp - 8]
push ebx
mov esi, eax
call fcn.00405c40
mov ebx, dword [ebp - 0x14]
add esp, 0x10
test esi, esi
jns 0x436fdf
lea ecx, [edi + 1]
mov dword [ebp - 0x10], ecx
jmp 0x436fee
jle 0x4370f0
mov ecx, dword [ebp - 0x10]
lea ebx, [edi - 1]
mov dword [ebp - 0x14], ebx
cmp ecx, ebx
jg 0x436e7f
mov edx, dword [ebp - 0xc]
lea edi, [ebx + ecx]
sar edi, 1
jmp 0x436ef2
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax]
mov al, byte [ebx + 0x44]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
mov word [ebx + 0x46], cx
bswap edx
cmp al, 0x13
jge 0x4370cc
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x2a], di
lea edi, [ebx + 0x74]
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 word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
push edx
push esi
call fcn.00423d30
add esp, 0x14
test eax, eax
jne 0x43716a
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
jmp 0x436df0
push 0x551524
push 0xfdc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x18], eax
xor eax, eax
mov word [ebx + 0x2a], ax
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [ebx + 0x1c], ecx
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x551524
push 0xfc2d
jmp 0x437151
mov eax, dword [ebp + 0x1c]
mov word [ebx + 0x46], di
pop edi
mov dword [eax], esi
xor eax, eax
xor ecx, ecx
pop esi
mov word [ebx + 0x2a], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x46], di
cmp byte [ecx + 0xb], al
je 0x43716a
push 0x551524
push 0xfe31
jmp 0x437151
push ebx
call fcn.00405c40
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + 0x2a], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor ecx, ecx
pop edi
pop esi
mov eax, 7
mov word [ebx + 0x2a], cx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x551524
push 0xfe12
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x2a], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret