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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x34]
movzx edx, byte [edi + 7]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp byte [edi + 3], al
je 0x436651
cmp ecx, 0x80
jae 0x43662d
mov esi, dword [ebp + 8]
mov byte [edx + esi], cl
lea ecx, [eax + 1]
jmp 0x436648
mov eax, dword [ebp + 8]
lea esi, [edx + eax]
mov eax, ecx
cdq
push edx
push eax
call fcn.00422630
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, eax
xor eax, eax
movzx ecx, cl
add edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
add ecx, edx
cmp esi, eax
ja 0x4366a1
jb 0x436667
cmp ebx, 0x7f
ja 0x436674
mov al, bl
and al, 0x7f
mov byte [ecx], al
mov eax, 1
jmp 0x4366af
cmp esi, eax
ja 0x4366a1
jb 0x436682
cmp ebx, 0x3fff
ja 0x4366a1
mov edx, ebx
mov eax, esi
shrd edx, eax, 7
or dl, 0x80
mov byte [ecx], dl
shr eax, 7
mov dl, bl
and dl, 0x7f
mov byte [ecx + 1], dl
mov eax, 2
jmp 0x4366ab
push esi
push ebx
call fcn.00422530
add esp, 8
mov edx, dword [esp + 0x10]
add edx, eax
cmp byte [edi + 2], 0
mov dword [esp + 0x10], edx
je 0x4366ce
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [ebp + 0x1c], 0
jmp 0x4366f9
test esi, esi
jg 0x4369a4
jl 0x4366e4
cmp ebx, 0x7fffffff
ja 0x4369a4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4369a4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov ecx, ebx
movzx esi, word [edi + 0xa]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp eax, esi
jg 0x436726
lea esi, [eax + edx]
cmp esi, 4
jge 0x436716
mov esi, 4
mov edi, dword [ebp + 0x24]
mov dword [edi], esi
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
jmp 0x43675a
movzx ebx, word [edi + 0xc]
mov edx, dword [edi + 0x34]
mov edi, dword [edx + 0x24]
xor edx, edx
sub eax, ebx
sub edi, 4
div edi
add edx, ebx
cmp edx, esi
jle 0x436741
mov edx, ebx
mov esi, dword [ebp + 0x24]
mov edi, edx
add edx, dword [esp + 0x10]
lea eax, [edx + 4]
add edx, dword [ebp + 8]
mov dword [esi], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], 0
mov eax, dword [ebp + 8]
lea ebx, [edx + eax]
jle 0x43697e
jmp 0x436774
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x436909
mov edi, dword [esp + 0x30]
cmp byte [edi + 0x11], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
je 0x4367dc
inc ebx
cmp ebx, 2
jae 0x436798
xor ecx, ecx
jmp 0x4367c5
mov eax, 0xcccccccd
mul dword [edi + 0x24]
mov esi, edx
shr esi, 2
xor edx, edx
inc esi
lea eax, [ebx - 2]
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x4c4d40]
imul ecx, esi
div dword [edi + 0x20]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x4367c5
inc ecx
cmp ecx, ebx
je 0x43678e
mov eax, dword [0x4c4d40]
xor edx, edx
div dword [edi + 0x20]
inc eax
cmp ebx, eax
je 0x43678e
mov dword [esp + 0x1c], ebx
push 0
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
call fcn.00435840
mov ebx, dword [esp + 0x3c]
add esp, 0x14
cmp byte [edi + 0x11], 0
mov esi, eax
mov dword [esp + 0x10], esi
je 0x436846
test esi, esi
jne 0x436987
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
test eax, eax
setne cl
add cl, 3
movzx edx, cl
push eax
mov eax, dword [esp + 0x24]
push edx
mov ecx, edi
call fcn.00430f60
mov esi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x43684e
test ebx, ebx
je 0x436846
mov eax, dword [ebx + 0x44]
push eax
call fcn.0042cb80
add esp, 4
test esi, esi
jne 0x436987
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4368e8
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x4368c8
dec dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov ebx, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a9340
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
mov ebx, dword [esp + 0x38]
add esp, 0x10
jmp 0x4368cd
call fcn.004275b0
cmp dword [esi + 0x78], 0
jne 0x4368e8
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4368e8
push esi
call fcn.00429df0
add esp, 4
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [eax], 0
mov ebx, dword [ebx + 0x38]
mov edi, dword [edi + 0x24]
add ebx, 4
mov dword [esp + 0x2c], eax
sub edi, 4
mov esi, dword [esp + 0x18]
cmp esi, edi
jle 0x436913
mov esi, edi
test ecx, ecx
jle 0x43692b
cmp esi, ecx
jle 0x43691d
mov esi, ecx
mov ecx, dword [esp + 0x20]
push esi
push ecx
push ebx
call fcn.00499190
jmp 0x436934
push esi
push 0
push ebx
call fcn.00499a80
mov eax, dword [esp + 0x20]
sub dword [esp + 0x24], esi
add dword [esp + 0x2c], esi
sub eax, esi
add esp, 0xc
add ebx, esi
sub edi, esi
mov dword [esp + 0x14], eax
test eax, eax
jne 0x43695f
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], 0
jg 0x436770
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43697e
mov edx, dword [eax + 0x44]
push edx
call fcn.0042cb80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43699b
mov ecx, dword [eax + 0x44]
push ecx
call fcn.0042cb80
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4bcee4
push 0xe223
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00420c70
add esp, 0x10
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret