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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x49], 1
jne 0x435069
mov dl, byte [edi + 0x48]
test dl, 2
je 0x435069
mov eax, dword [edi + 0x78]
cmp byte [eax + 2], 0
je 0x435069
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x1c]
cmp eax, esi
jne 0x435047
cmp ecx, dword [ebp + 0x14]
jne 0x435047
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 8
je 0x435069
cmp ecx, dword [ebp + 0x14]
jg 0x435069
jl 0x435057
cmp eax, esi
jae 0x435069
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x435080
mov eax, esi
call fcn.00440e60
mov dword [ebp - 0x10], eax
mov byte [esi + 7], 0
jmp 0x435087
mov dword [ebp - 0x10], 0
mov eax, edi
call fcn.00434ce0
test eax, eax
jne 0x435452
cmp byte [edi + 0x49], al
jne 0x4350ad
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
sub ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
jmp 0x4350c0
movsx eax, word [edi + 0x4c]
mov ebx, dword [edi + eax*4 + 0x78]
movzx esi, word [ebx + 0x12]
dec esi
mov dword [ebp - 8], esi
sar esi, cl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov word [edi + eax*2 + 0x4e], si
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x4351e0
lea esp, [esp]
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + esi*2 + 1]
movzx ecx, byte [ecx + esi*2]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 7]
add eax, ecx
cmp byte [ebx + 3], 0
je 0x43512f
cmp byte [eax], 0x80
jb 0x43512e
mov ecx, dword [ebx + 0x3c]
mov edi, edi
inc eax
cmp eax, ecx
jae 0x4353c2
cmp byte [eax], 0x80
jae 0x435120
inc eax
lea edi, [ebp - 0x28]
call fcn.00422690
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, eax
jg 0x43518d
jl 0x43514b
cmp edx, dword [ebp + 0x10]
jae 0x435182
lea eax, [esi + 1]
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 8]
jle 0x435198
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
cmp byte [ebx + 5], 0
jne 0x435409
movzx edx, word [ebx + 0x12]
cmp ecx, edx
jl 0x435361
movzx eax, byte [ebx + 6]
mov edx, dword [ebx + 0x38]
lea eax, [eax + edx + 8]
jmp 0x43537d
cmp ecx, eax
jl 0x4351af
jg 0x43518d
cmp edx, dword [ebp + 0x10]
jbe 0x4351af
lea eax, [esi - 1]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], eax
jg 0x4351a8
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea esi, [esi + eax]
sar esi, 1
jmp 0x4350f0
mov edi, 1
jmp 0x435159
mov eax, dword [ebp + 8]
or byte [eax + 0x48], 2
mov dword [eax + 0x1c], ecx
movsx ecx, word [eax + 0x4c]
mov dword [eax + 0x18], edx
mov word [eax + ecx*2 + 0x4e], si
cmp byte [ebx + 5], 0
jne 0x4353e7
mov dword [ebp - 4], esi
mov ecx, esi
jmp 0x435166
mov edx, dword [ebx + 0x40]
movzx eax, byte [edx + esi*2 + 1]
lea ecx, [edx + esi*2]
movzx ecx, byte [ecx]
movzx edx, byte [ebx + 7]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, edx
add eax, dword [ebx + 0x38]
movzx edx, byte [ebx + 8]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x435220
mov edx, dword [ebp + 0xc]
push edx
inc eax
push eax
push ecx
call edi
add esp, 0xc
mov edi, eax
jmp 0x43531f
mov dl, byte [eax + 1]
test dl, dl
js 0x43524f
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x43524f
mov edx, dword [ebp + 0xc]
push edx
add eax, 2
push eax
push ecx
call edi
add esp, 0xc
mov edi, eax
jmp 0x43531f
movzx ecx, byte [ebx + 7]
mov edi, dword [ebp + 8]
sub eax, ecx
push eax
push ebx
lea eax, [edi + 0x18]
call fcn.004311a0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
cdq
add esp, 8
mov edi, eax
or eax, edx
je 0x4353f4
test edx, edx
ja 0x4353f4
jb 0x43528c
cmp edi, 0x7fffff00
jae 0x4353f4
cmp dword [0x4c4c30], 0
je 0x43532b
mov eax, dword [0x4c74d0]
test eax, eax
je 0x4352ac
push eax
call dword [0x4c4c84]
add esp, 4
lea ebx, [ebp - 0xc]
mov eax, edi
call fcn.0041e760
mov eax, dword [0x4c74d0]
test eax, eax
je 0x4352c9
push eax
call dword [0x4c4c8c]
add esp, 4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4353f4
mov eax, dword [ebp + 8]
movsx edx, word [eax + 0x4c]
push 2
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push eax
mov word [eax + edx*2 + 0x4e], si
call fcn.00434870
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4353fb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push edx
push eax
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add esp, 0xc
push edx
mov edi, eax
call fcn.0041eb60
add esp, 4
test edi, edi
jns 0x43533a
lea eax, [esi + 1]
mov dword [ebp - 4], eax
jmp 0x435346
push edi
call dword [0x4c4c54]
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x4352cc
jle 0x43541e
lea ecx, [esi - 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, eax
jg 0x43515c
mov edi, dword [ebp - 0x10]
lea esi, [eax + ecx]
sar esi, 1
jmp 0x4351e0
mov edx, dword [ebx + 0x40]
movzx eax, byte [edx + ecx*2 + 1]
lea edx, [edx + ecx*2]
movzx edx, byte [edx]
shl edx, 8
or eax, edx
movzx edx, word [ebx + 0x14]
and eax, edx
add eax, dword [ebx + 0x38]
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 8]
movsx edx, word [eax + 0x4c]
mov esi, eax
mov word [eax + edx*2 + 0x4e], cx
call fcn.00434c40
mov edi, eax
test edi, edi
jne 0x435443
mov ecx, dword [ebp - 0x1c]
mov edi, esi
jmp 0x4350c0
push 0x4bcee4
push 0xde71
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00420c70
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
xor edi, edi
jmp 0x435443
mov edi, 7
jmp 0x435443
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041eb60
add esp, 4
jmp 0x435443
mov eax, dword [ebp + 8]
movsx edx, word [eax + 0x4c]
mov word [eax + edx*2 + 0x4e], si
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
xor edi, edi
jmp 0x435443
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
movsx edx, word [eax + 0x4c]
mov word [eax + edx*2 + 0x4e], si
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp byte [eax + 7], 0
je 0x435443
mov edi, 0xb
mov eax, dword [ebp + 8]
xor ecx, ecx
and byte [eax + 0x48], 0xf9
mov word [eax + 0x2c], cx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret