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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, edx
mov esi, ecx
test edx, edx
mov dword [esp + 4], ecx
je 0x4560a1
mov eax, dword [ebx]
mov dword [esp + 0x14], 0x460d60
cmp word [eax + 8], 0xd
ja 0x45610b
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 4]
mov edi, ebx
mov bl, byte [edx]
movzx ecx, word [ecx + 8]
test bl, bl
je 0x4560e1
test bl, 2
mov edx, 0x460d60
mov ebx, edi
jne 0x456107
mov dl, 0xff
mov dh, 1
jmp 0x4560e7
cmp byte [esi], 0
mov dword [esp + 0x14], 0
jne 0x45610f
movzx edx, byte [esi + 1]
test dl, 2
je 0x45610f
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
mov esi, ecx
xor esi, edi
mov edi, eax
xor edi, dword [ebp + 8]
or edi, esi
jne 0x4565aa
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
jmp 0x4566e3
mov dl, 1
mov dh, 0xff
mov ebx, edi
mov byte [ebx + 0xc], dh
mov byte [ebx + 0xd], dl
mov edx, 0x460d80
test cl, 4
jne 0x456107
test cl, 0x39
jne 0x45610b
cmp dword [eax + 0x14], 0
jne 0x45610b
mov edx, 0x460e70
mov dword [esp + 0x14], edx
mov byte [ebx + 0xb], 0
mov ecx, esi
call fcn.0045ff10
cmp eax, 0x10
je 0x456627
test eax, eax
jne 0x4566e3
mov ecx, 1
lea eax, [esi + 0x74]
mov dword [esp + 0x1c], ebx
sub ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov eax, esi
mov esi, dword [esi + 0x74]
movzx edx, word [esi + 0x18]
mov dword [esp + 0xc], esi
dec edx
mov dword [esp + 0x18], edx
sar edx, cl
cmp dword [esp + 0x14], 0
mov word [eax + 0x46], dx
je 0x456381
mov dword [esp + 0x10], 0
jmp 0x4561a0
mov eax, dword [esp + 0x18]
lea ecx, [edx + 1]
cmp ecx, eax
jg 0x456344
mov esi, dword [esp + 0xc]
lea edx, [eax + ecx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
sar edx, 1
mov ecx, dword [esi + 0x40]
mov dword [esp + 8], edx
movzx ebx, word [esi + 0x1a]
mov eax, dword [esi + 0x44]
movzx edi, byte [ecx + edx*2]
movzx edx, byte [ecx + edx*2 + 1]
shl edi, 8
or edx, edi
and edx, ebx
movzx ecx, byte [eax + edx]
cmp cl, byte [esi + 0xb]
lea esi, [eax + edx + 1]
jbe 0x456300
add eax, edx
movzx edx, byte [esi]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
test dl, dl
js 0x4561f4
movzx edi, word [esi + 0xe]
and ecx, 0x7f
shl ecx, 7
add ecx, edx
cmp ecx, edi
jbe 0x456308
movzx ecx, byte [esi + 0xa]
sub eax, ecx
mov ecx, esi
mov esi, dword [esp + 0x30]
push esi
push eax
push ecx
call dword [ecx + 0x50]
add esp, 0xc
mov esi, dword [esi]
cmp esi, 2
jl 0x45653b
mov eax, dword [esp + 4]
xor edx, edx
mov ecx, dword [eax + 0x14]
mov eax, esi
div dword [ecx + 0x28]
cmp eax, dword [ecx + 0x30]
ja 0x45653b
lea ecx, [esi + 0x12]
mov edx, ecx
sar edx, 0x1f
call fcn.0041c030
test eax, eax
je 0x456637
mov edi, eax
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov word [ebx + 0x46], ax
mov ecx, ebx
push 0
push edi
push esi
call fcn.004468c0
add esp, 0xc
mov dword [edi + esi + 4], 0
mov dword [edi + esi], 0
mov dword [edi + esi + 0xc], 0
mov dword [edi + esi + 8], 0
mov word [edi + esi + 0x10], 0
and byte [ebx + 1], 0xfb
test eax, eax
jne 0x456645
mov ecx, esi
mov edx, edi
push 0
mov ebx, dword [esp + 0x20]
push ebx
call fcn.00460fb0
add esp, 8
cmp dword [0x51d1a8], 0
mov esi, eax
je 0x456319
mov eax, dword [0x51e858]
test eax, eax
je 0x4562c1
push eax
call dword [0x51d1f8]
add esp, 4
push edi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push edi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x456323
push eax
call dword [0x51d200]
jmp 0x456320
mov ebx, dword [esp + 0x1c]
push ebx
push esi
jmp 0x45630d
add eax, 2
push ebx
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov esi, eax
jmp 0x456323
push edi
call dword [0x51d1cc]
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
test esi, esi
js 0x456180
je 0x456567
lea eax, [edx - 1]
cmp ecx, eax
jle 0x45618f
mov edx, dword [esp + 0xc]
cmp byte [edx + 8], 0
jne 0x4566c8
movzx eax, word [edx + 0x18]
mov ebx, dword [edx + 0x38]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jge 0x456441
movzx eax, word [edx + 0x1a]
mov edx, dword [edx + 0x40]
movzx esi, byte [edx + ecx*2]
movzx edi, byte [edx + ecx*2 + 1]
shl esi, 8
or edi, esi
and edi, eax
jmp 0x456448
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], edx
mov ecx, dword [esi + 0x40]
movzx eax, word [esi + 0x1a]
movzx edi, byte [ecx + edx*2]
movzx ecx, byte [ecx + edx*2 + 1]
shl edi, 8
or ecx, edi
and ecx, eax
add ecx, dword [esi + 0x44]
cmp byte [esi + 3], 0
je 0x4563d0
mov edi, dword [ebp + 8]
cmp byte [ecx], 0
jns 0x4563d5
inc ecx
cmp ecx, dword [esi + 0x3c]
jb 0x4563c0
jmp 0x456513
mov edi, dword [ebp + 8]
jmp 0x4563d6
inc ecx
lea edx, [esp + 0x20]
call fcn.00442e00
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, edi
cmp eax, edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
sbb edx, edi
jge 0x45640d
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
lea ecx, [eax + 1]
cmp eax, edx
jge 0x4564de
mov esi, dword [esp + 0xc]
jmp 0x456430
cmp esi, eax
mov edx, edi
sbb edx, ecx
jge 0x4564e8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0xc]
cmp ecx, eax
jge 0x456509
dec eax
mov edx, eax
mov dword [esp + 0x18], edx
add edx, ecx
mov dword [esp + 0x10], ecx
sar edx, 1
jmp 0x456389
movzx edi, byte [edx + 9]
add edi, 8
movzx esi, byte [ebx + edi + 3]
movzx eax, byte [ebx + edi]
movzx ecx, byte [ebx + edi + 1]
movzx edx, byte [ebx + edi + 2]
mov edi, dword [esp + 0x10]
mov dword [esp + 8], esi
mov esi, dword [esp + 4]
mov word [esi + 0x46], di
movsx ebx, byte [esi + 0x44]
cmp ebx, 0x13
jge 0x4566b9
mov edi, dword [esi + 0x14]
mov word [esi + 0x32], 0
shl ecx, 0x10
shl eax, 0x18
shl edx, 8
or eax, ecx
or edx, eax
mov dword [esp + 0xc], edi
and byte [esi + 1], 0xf9
mov edi, dword [esp + 0x10]
add edx, dword [esp + 8]
mov word [esi + ebx*2 + 0x48], di
mov edi, dword [esi + 0x74]
movsx ebx, byte [esi + 0x44]
mov dword [esi + ebx*4 + 0x78], edi
mov word [esi + 0x46], 0
inc byte [esi + 0x44]
movzx eax, byte [esi + 2]
mov ecx, dword [esp + 0xc]
push eax
push esi
push dword [esp + 0x34]
call fcn.00460130
add esp, 0xc
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x456145
jmp 0x4566dd
mov esi, 0xffffffff
jmp 0x456344
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov word [esi + 0x46], di
cmp byte [edx + 8], 0
jne 0x4566eb
mov ecx, edi
jmp 0x456352
mov esi, 1
jmp 0x456344
push 0x50d803
push 0x110de
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov eax, 0xb
jmp 0x4566e3
push 0x50d803
push 0x11129
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov esi, dword [esp + 4]
mov eax, 0xb
jmp 0x4566dd
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 4]
mov dword [eax], 0
mov word [esi + 0x46], dx
cmp byte [ebx + 0xb], 0
je 0x4566db
push 0x50d803
push 0x11149
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov eax, 0xb
jmp 0x4566dd
mov edi, dword [ebp + 8]
mov esi, ecx
cmp eax, edi
sbb esi, dword [ebp + 0xc]
jge 0x45669e
mov esi, dword [esp + 4]
test dl, 8
jne 0x456627
add eax, 1
adc ecx, 0
xor eax, edi
xor ecx, dword [ebp + 0xc]
or ecx, eax
jne 0x45610f
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0
push esi
call fcn.00456700
add esp, 8
cmp eax, 0x65
je 0x45610f
test eax, eax
jne 0x4566e3
mov ecx, esi
call fcn.00446880
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], 0
xor eax, dword [ebp + 0xc]
xor ecx, edi
or ecx, eax
mov eax, 0
jne 0x45610f
jmp 0x4566e3
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x4566e3
mov esi, dword [esp + 4]
mov eax, 7
jmp 0x4566dd
cmp dword [0x51d1a8], 0
mov ebx, eax
je 0x4566a7
mov eax, dword [0x51e858]
mov esi, dword [esp + 4]
test eax, eax
je 0x456667
push eax
call dword [0x51d1f8]
add esp, 4
push edi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push edi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x4566b5
push eax
call dword [0x51d200]
add esp, 4
mov eax, ebx
jmp 0x4566dd
mov esi, dword [esp + 4]
jmp 0x45610f
push edi
call dword [0x51d1cc]
add esp, 4
mov esi, dword [esp + 4]
mov eax, ebx
jmp 0x4566dd
push 0x50d803
push 0x10f42
jmp 0x45658c
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0x14]
mov word [eax + 0x46], cx
mov dword [edx], esi
mov esi, eax
xor eax, eax
mov word [esi + 0x32], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
or byte [esi + 1], 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov word [esi + 0x32], 0
jmp 0x4560d1