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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
cmp byte [esi + 0x42], 1
push edi
jne 0x45016a
mov dl, byte [esi + 0x40]
test dl, 2
je 0x45016a
cmp byte [esi + 0x45], 0
je 0x45016a
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
cmp eax, edi
jne 0x450145
cmp ecx, dword [esp + 0x3c]
jne 0x450145
mov eax, dword [esp + 0x44]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test dl, 8
je 0x45016a
cmp ecx, dword [esp + 0x3c]
jg 0x45016a
jl 0x450156
cmp eax, edi
jae 0x45016a
mov ecx, dword [esp + 0x44]
mov dword [ecx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x450183
mov eax, edi
call fcn.0045bd70
mov dword [esp + 0x18], eax
mov byte [edi + 7], 0
jmp 0x45018b
mov dword [esp + 0x18], 0
call fcn.0044fe30
test eax, eax
jne 0x4504ed
cmp byte [esi + 0x42], al
jne 0x4501af
mov edx, dword [esp + 0x44]
mov dword [edx], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 1
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
lea esp, [esp]
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
movzx ebp, word [ebx + 0x12]
dec ebp
mov dword [esp + 0x1c], ebp
sar ebp, cl
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov word [esi + eax*2 + 0x50], bp
jne 0x4502d2
jmp 0x4501f0
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x44]
cmp byte [ebx + 3], 0
je 0x450224
cmp byte [eax], 0x80
jb 0x450223
mov ecx, dword [ebx + 0x3c]
inc eax
cmp eax, ecx
jae 0x45042c
cmp byte [eax], 0x80
jae 0x450215
inc eax
lea edi, [esp + 0x28]
call fcn.0043edc0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov ecx, dword [esp + 0x28]
jg 0x450287
jl 0x450245
cmp ecx, dword [esp + 0x38]
jae 0x45027b
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jle 0x450298
or edi, 0xffffffff
cmp byte [ebx + 5], 0
jne 0x450499
movzx ecx, word [ebx + 0x12]
cmp eax, ecx
jl 0x4503eb
movzx edx, byte [ebx + 6]
mov ecx, dword [ebx + 0x38]
mov edi, dword [edx + ecx + 8]
jmp 0x450405
cmp eax, edx
jl 0x4502ad
jg 0x450287
cmp ecx, dword [esp + 0x38]
jbe 0x4502ad
lea eax, [ebp - 1]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
jg 0x4502a6
mov edx, dword [esp + 0x1c]
lea ebp, [edx + eax]
sar ebp, 1
jmp 0x4501f0
mov edi, 1
jmp 0x450255
or byte [esi + 0x40], 2
mov dword [esi + 0x14], eax
movsx eax, byte [esi + 0x44]
mov dword [esi + 0x10], ecx
mov word [esi + eax*2 + 0x50], bp
cmp byte [ebx + 5], 0
jne 0x450452
mov dword [esp + 0x10], ebp
mov eax, ebp
jmp 0x45025f
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + ebp*2]
movzx ecx, word [ebx + 0x14]
mov ah, dl
mov al, dh
movzx edx, byte [ebx + 8]
movzx eax, ax
and eax, ecx
add eax, dword [ebx + 0x44]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x45030a
mov edx, dword [esp + 0x34]
push edx
inc eax
push eax
push ecx
call dword [esp + 0x24]
add esp, 0xc
mov edi, eax
jmp 0x4503b7
mov dl, byte [eax + 1]
test dl, dl
js 0x450339
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x450339
mov edx, dword [esp + 0x34]
push edx
add eax, 2
push eax
push ecx
call dword [esp + 0x24]
add esp, 0xc
mov edi, eax
jmp 0x4503b7
movzx ecx, byte [ebx + 7]
mov edx, dword [ebx + 0x50]
lea edi, [esi + 0x10]
push edi
sub eax, ecx
push eax
push ebx
call edx
mov edi, dword [edi]
add esp, 0xc
cmp edi, 2
jl 0x450469
lea eax, [edi + 0x12]
cdq
push edx
push eax
call fcn.0043b430
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x450484
movsx ecx, byte [esi + 0x44]
push 2
push eax
push edi
push esi
xor eax, eax
mov word [esi + ecx*2 + 0x50], bp
call fcn.0044fa50
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x45048e
mov edx, dword [esp + 0x34]
push edx
push eax
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov edi, eax
call fcn.0043b720
add esp, 4
test edi, edi
jge 0x4503c4
lea edx, [ebp + 1]
mov dword [esp + 0x10], edx
jmp 0x4503d1
jle 0x4504b2
lea eax, [ebp - 1]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jg 0x450255
lea ebp, [ecx + eax]
sar ebp, 1
jmp 0x4502d2
mov edx, dword [ebx + 0x40]
mov cx, word [edx + eax*2]
mov dh, cl
mov dl, ch
movzx ecx, dx
movzx edx, word [ebx + 0x14]
and ecx, edx
mov edx, dword [ebx + 0x38]
mov edi, dword [ecx + edx]
movsx ecx, byte [esi + 0x44]
mov word [esi + ecx*2 + 0x50], ax
bswap edi
mov eax, esi
call fcn.0044fdd0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4504df
mov ecx, dword [esp + 0x24]
jmp 0x4501c0
push 0x5447ac
push 0xe5fc
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043d4f0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x44]
mov dword [edx], 0
mov dword [esp + 0x14], 0
jmp 0x4504df
push 0x5447ac
push 0xe645
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043d4f0
add esp, 0x10
jmp 0x4504d7
mov dword [esp + 0x14], 7
jmp 0x4504df
push eax
call fcn.0043b720
add esp, 4
jmp 0x4504df
movsx ecx, byte [esi + 0x44]
mov edx, dword [esp + 0x44]
mov word [esi + ecx*2 + 0x50], bp
mov dword [edx], edi
mov dword [esp + 0x14], 0
jmp 0x4504df
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [eax], 0
movsx ecx, byte [esi + 0x44]
mov word [esi + ecx*2 + 0x50], bp
cmp byte [edx + 7], 0
mov dword [esp + 0x14], 0
je 0x4504df
mov dword [esp + 0x14], 0xb
xor eax, eax
and byte [esi + 0x40], 0xf9
mov word [esi + 0x24], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret