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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x5c2b80]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov eax, ecx
mov dword [esp + 0x10], ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x100], ebx
mov byte [esp + 0x104], bl
mov dword [esp + 0x2c], ecx
push edi
test esi, esi
jne 0x495e25
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea esi, [ecx + edi]
cmp esi, 2
jge 0x495e39
xor edx, edx
jmp 0x495e56
test edx, edx
je 0x495e4c
cmp edx, esi
jne 0x495e4b
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x495e4f
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], eax
mov eax, edx
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x495e7e
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x38]
movzx ecx, byte [eax + 6]
add edi, 8
add edi, ecx
jmp 0x495e9c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x40]
movzx edi, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edi, 8
or edi, eax
movzx eax, word [edx + 0x14]
and edi, eax
add edi, dword [edx + 0x38]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x58], edi
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
lea edi, [esp + 0xf8]
or ecx, eax
lea edi, [edi + esi*4]
mov dword [esp + 0x14], ecx
mov edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
push 0
push edi
call fcn.00490560
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x496d28
mov eax, dword [edi]
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, ebx
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4960b0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
movzx ecx, word [edi + 0x16]
lea eax, [edx + esi]
cmp eax, ecx
jne 0x495f76
cmp byte [edi + 1], 0
je 0x495f76
mov edx, dword [edi + 0x20]
lea ebx, [esi*4]
mov dword [esp + ebx + 0x6c], edx
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ecx
mov ecx, edi
call fcn.0048f930
movzx eax, ax
mov dword [esp + ebx + 0x8c], eax
mov byte [edi + 1], 0
jmp 0x49603c
movzx eax, byte [edi + 1]
mov ecx, edx
mov ebx, dword [edi + 0x38]
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
movzx edi, word [edi + 0x14]
movzx edx, byte [eax + ecx*2 + 1]
movzx eax, byte [eax + ecx*2]
shl eax, 8
or edx, eax
and edi, edx
add edi, ebx
mov edx, edi
mov dword [esp + esi*4 + 0x6c], edi
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
call fcn.0048f930
mov edx, dword [esp + 0x30]
movzx ebx, ax
mov dword [esp + esi*4 + 0x8c], ebx
test byte [edx + 0x16], 4
je 0x496017
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x24]
jg 0x496073
push ebx
push edi
mov edi, dword [esp + 0x54]
lea eax, [edi + ecx]
push eax
call fcn.0052e420
mov ecx, dword [esp + 0x38]
mov eax, edi
add esp, 0xc
sub eax, dword [ecx + 0x38]
add dword [esp + esi*4 + 0x6c], eax
jmp 0x49601b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
movzx eax, byte [ecx + 1]
sub edx, eax
push ebx
add edx, esi
call fcn.00494f60
add esp, 8
lea ebx, [esi*4]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0xf8]
mov ecx, dword [esp + 0x30]
add edi, ebx
push 0
push edi
call fcn.00490560
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x496d28
mov ebx, dword [esp + 0x20]
jmp 0x495ef1
push 0x599054
push 0xe80b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0047f120
lea eax, [esi*4 + 4]
mov dword [esp + 0x20], 0xb
push eax
lea eax, [esp + 0x10c]
push 0
push eax
call fcn.0052ebd0
add esp, 0x1c
jmp 0x496d42
mov eax, dword [esp + 0x30]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x20]
lea ecx, [esi + esi*2]
lea ecx, [eax + ecx*2]
call fcn.0047cc40
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4960dd
mov dword [esp + 0x10], 7
jmp 0x496d42
mov ecx, dword [esp + 0xf8]
lea edx, [eax + esi*4]
xor ebx, ebx
mov dword [esp + 0x28], edx
lea esi, [edx + esi*2]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], esi
movzx eax, byte [ecx + 5]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x5c], eax
movzx eax, byte [ecx + 3]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4962d9
jmp 0x496120
lea eax, [ebx*4]
mov edi, dword [esp + eax + 0xf8]
mov dword [esp + 0x44], eax
mov cl, byte [edi + 1]
movzx edx, word [edi + 0x12]
movzx eax, cl
add edx, eax
mov dword [esp + 0x50], edx
test cl, cl
je 0x4961bc
xor ebx, ebx
test edx, edx
jle 0x496214
movzx eax, byte [edi + 1]
mov ecx, ebx
dec eax
js 0x496170
lea esi, [eax + 0xb]
lea esi, [edi + esi*2]
nop
movzx edx, word [esi]
cmp edx, ecx
jg 0x49616a
je 0x4961b6
dec ecx
sub esi, 2
dec eax
jns 0x496160
mov eax, dword [edi + 0x40]
movzx edx, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edx, 8
or edx, eax
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [ecx + eax*4], edx
mov ecx, edi
call fcn.0048f930
mov edx, dword [esp + 0x24]
inc ebx
mov ecx, dword [esp + 0x28]
mov word [ecx + edx*2], ax
inc edx
mov dword [esp + 0x24], edx
cmp ebx, dword [esp + 0x50]
jl 0x496150
jmp 0x496218
mov edx, dword [edi + eax*4 + 0x20]
jmp 0x49618a
mov ebx, dword [edi + 0x38]
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0xe]
test edx, edx
jle 0x496214
mov edx, eax
lea esi, [ebx + ecx]
mov dword [esp + 0x64], edx
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x24]
and edx, ecx
mov ecx, dword [esp + 0x48]
add edx, ebx
mov dword [ecx + eax*4], edx
mov ecx, edi
call fcn.0048f930
mov ecx, dword [esp + 0x24]
lea esi, [esi + 2]
mov edx, dword [esp + 0x28]
mov word [edx + ecx*2], ax
inc ecx
dec dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x24], ecx
jne 0x4961d4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
dec eax
mov esi, dword [esp + 0x20]
mov dword [esp + ecx + 0xd0], edx
cmp ebx, eax
jge 0x4962c6
cmp dword [esp + 0x34], 0
jne 0x4962c6
movzx eax, word [esp + ecx + 0x8c]
mov ebx, dword [esp + 0x28]
push eax
push dword [esp + ecx + 0x70]
mov word [ebx + edx*2], ax
mov edx, dword [esp + 0x68]
add esi, edx
add edx, eax
push esi
mov dword [esp + 0x6c], edx
call fcn.0052e420
mov ebx, dword [esp + 0x68]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
movzx eax, bx
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
sub word [esi + edx*2], bx
cmp byte [edi + 5], 0
jne 0x49629c
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4962bd
cmp word [esi + edx*2], 4
jae 0x4962bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
mov byte [ecx + eax], 0
inc eax
mov dword [esp + 0x60], eax
mov eax, 4
mov word [esi + edx*2], ax
mov ebx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x24], edx
inc ebx
mov dword [esp + 0x38], ebx
cmp ebx, dword [esp + 0x3c]
jl 0x496120
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov edi, dword [esp + 0x24]
xor ebx, ebx
movzx esi, ax
mov eax, dword [esp + 0x30]
add esi, 0xfffffff4
mov eax, dword [eax + 0x24]
add esi, eax
xor eax, eax
mov dword [esp + 0x64], esi
test edi, edi
jle 0x49635e
mov edi, edi
movzx edx, word [edx + ecx*2]
add eax, 2
add eax, edx
cmp eax, esi
jle 0x49632d
sub eax, edx
mov dword [esp + ebx*4 + 0x78], ecx
sub eax, 2
cmp dword [esp + 0x34], 0
mov dword [esp + ebx*4 + 0x8c], eax
je 0x496325
dec ecx
inc ebx
xor eax, eax
cmp ebx, 4
jg 0x496338
inc ecx
cmp ecx, edi
jge 0x49635e
mov edx, dword [esp + 0x28]
jmp 0x496300
push 0x599054
push 0xe895
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0047f120
add esp, 0x10
mov dword [esp + 0x10], 0xb
jmp 0x496d42
mov dword [esp + ebx*4 + 0x8c], eax
mov dword [esp + ebx*4 + 0x78], edi
inc ebx
mov dword [esp + 0x44], ebx
lea ecx, [ebx - 1]
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x496412
mov eax, dword [esp + 0x34]
mov edx, dword [esp + ecx*4 + 0x8c]
mov ebx, dword [esp + ecx*4 + 0x88]
mov edi, dword [esp + ecx*4 + 0x74]
dec edi
mov esi, edi
sub esi, eax
inc esi
test edx, edx
je 0x4963c3
cmp dword [ebp + 0x10], 0
jne 0x4963f3
mov eax, dword [esp + 0x28]
mov ecx, ebx
movzx eax, word [eax + edi*2]
sub ecx, eax
mov eax, dword [esp + 0x28]
sub ecx, 2
movzx eax, word [eax + esi*2]
add eax, 2
add eax, edx
cmp eax, ecx
jg 0x4963eb
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + esi*2]
add eax, 2
add edx, eax
movzx eax, word [ecx + edi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + 0x34]
add ebx, ecx
mov ecx, dword [esp + 0x20]
dec dword [esp + ecx*4 + 0x74]
jmp 0x49638f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [esp + ecx*4 + 0x8c], edx
mov dword [esp + ecx*4 + 0x88], ebx
dec ecx
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x496381
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0xf8]
cmp dword [eax + 0x48], 1
ja 0x49642e
push 0x599054
push 0xe8d0
jmp 0x496342
mov eax, dword [eax + 0x38]
xor esi, esi
movzx eax, byte [eax]
lea ecx, [esi + 1]
mov dword [esp + 0x38], eax
test ebx, ebx
jle 0x496546
cmp esi, dword [esp + 0x3c]
jge 0x4964a3
mov eax, dword [esp + esi*4 + 0xf8]
mov dword [esp + esi*4 + 0xe4], eax
mov dword [esp + esi*4 + 0xf8], 0
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x496483
call fcn.0048b240
jmp 0x496488
call fcn.0048b090
inc dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x496d42
jmp 0x496538
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov ecx, dword [esp + 0x30]
push 0
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00493dd0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x496d42
mov edi, dword [esp + 0x20]
mov ecx, edi
mov edx, dword [esp + 0x38]
call fcn.00490440
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + esi*4 + 0xe4], edi
cmp byte [ecx + 0x11], 0
mov dword [esp + esi*4 + 0xd0], eax
je 0x496530
mov edx, dword [edi + 0x48]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x48]
push 5
call fcn.0048f5c0
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x496d42
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
inc esi
mov ecx, 1
cmp esi, ebx
jl 0x496445
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
jle 0x496597
mov eax, dword [esp + ecx*4 + 0xe4]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
mov dword [esp + ecx*4 + 0xb8], edx
mov dword [esp + ecx*4 + 0xa0], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0x6c], ax
xor eax, eax
test ecx, ecx
jle 0x496592
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0xb8], edx
je 0x496680
inc eax
cmp eax, ecx
jl 0x496580
inc ecx
cmp ecx, esi
jl 0x496550
xor edi, edi
mov dword [esp + 0x14], edi
test esi, esi
jle 0x4967d5
xor ebx, ebx
lea ecx, [ebx + 1]
cmp esi, ecx
jle 0x4965e8
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x4965c0
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xa0]
cmp eax, dword [esp + esi + 0xa0]
jae 0x4965db
mov ebx, ecx
mov esi, edx
inc ecx
cmp ecx, edi
jl 0x4965c0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + ebx*4 + 0xa0]
mov dword [esp + 0x44], eax
mov dword [esp + ebx*4 + 0xa0], 0xffffffff
cmp ebx, edi
je 0x4967c8
jle 0x4966ee
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x2c]
mov eax, dword [esp + ebx*4 + 0xe4]
inc esi
add esi, ebx
push esi
mov edi, dword [eax + 0x44]
xor eax, eax
push dword [edi + 0x14]
mov word [edi + 0x18], ax
mov eax, dword [edi + 0x1c]
push dword [edi]
push dword [eax + 0x28]
call dword [0x5c4ba4]
movzx eax, word [edi + 0x18]
add esp, 0x10
mov dword [edi + 0x14], esi
test al, 2
je 0x4966ea
test al, 4
je 0x4966ea
mov ecx, dword [edi + 0x1c]
cmp dword [ecx + 8], edi
jne 0x496671
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49666e
test byte [eax + 0x18], 4
je 0x49666e
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x496661
mov dword [ecx + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
test edx, edx
je 0x49668f
mov dword [edx + 0x24], eax
jmp 0x496692
push 0x599054
push 0xe907
jmp 0x496342
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
test edx, edx
je 0x4966a1
mov dword [edx + 0x20], eax
jmp 0x4966b0
mov dword [ecx], eax
test eax, eax
jne 0x4966b0
cmp byte [ecx + 0x1c], al
je 0x4966b0
mov byte [ecx + 0x1d], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [ecx]
mov dword [edi + 0x20], eax
test eax, eax
je 0x4966cc
mov dword [eax + 0x24], edi
jmp 0x4966d9
cmp byte [ecx + 0x1c], 0
mov dword [ecx + 4], edi
je 0x4966d9
mov byte [ecx + 0x1d], 1
cmp dword [ecx + 8], 0
mov dword [ecx], edi
jne 0x4966ea
test byte [edi + 0x18], 4
jne 0x4966ea
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x14]
mov eax, dword [esp + edi*4 + 0xe4]
mov esi, dword [eax + 0x44]
mov ax, word [esp + ebx*2 + 0x6c]
mov ebx, dword [esp + 0x44]
push ebx
push dword [esi + 0x14]
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x28]
call dword [0x5c4ba4]
movzx eax, word [esi + 0x18]
add esp, 0x10
mov dword [esi + 0x14], ebx
test al, 2
je 0x4967ba
test al, 4
je 0x4967ba
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x496750
mov eax, dword [esi + 0x24]
test eax, eax
je 0x49674d
test byte [eax + 0x18], 4
je 0x49674d
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x496740
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
test edx, edx
je 0x49675f
mov dword [edx + 0x24], eax
jmp 0x496762
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
test edx, edx
je 0x496771
mov dword [edx + 0x20], eax
jmp 0x496780
mov dword [ecx], eax
test eax, eax
jne 0x496780
cmp byte [ecx + 0x1c], al
je 0x496780
mov byte [ecx + 0x1d], 2
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
test eax, eax
je 0x49679c
mov dword [eax + 0x24], esi
jmp 0x4967a9
cmp byte [ecx + 0x1c], 0
mov dword [ecx + 4], esi
je 0x4967a9
mov byte [ecx + 0x1d], 1
cmp dword [ecx + 8], 0
mov dword [ecx], esi
jne 0x4967ba
test byte [esi + 0x18], 4
jne 0x4967ba
mov dword [ecx + 8], esi
mov eax, dword [esp + edi*4 + 0xe4]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x48], ebx
inc edi
mov dword [esp + 0x14], edi
cmp edi, esi
jl 0x4965a5
mov eax, dword [esp + esi*4 + 0xe0]
mov edx, dword [esp + 0x58]
mov ecx, dword [eax + 0x48]
mov eax, ecx
shr eax, 0x18
mov byte [edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
test byte [esp + 0x38], 8
mov byte [edx + 2], al
mov byte [edx + 3], cl
jne 0x496836
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
je 0x496836
cmp esi, ecx
lea edx, [esp + 0xf8]
lea eax, [esp + 0xe4]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0xe0]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0xe4]
cmp byte [ebx + 0x11], 0
je 0x4969fe
movzx eax, byte [esi + 1]
xor edi, edi
movzx ecx, word [esi + 0x12]
mov edx, dword [esi + 0x38]
add ecx, eax
mov eax, dword [ebx + 0x24]
xor ebx, ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], 0
cmp dword [esp + 0x24], ebx
jle 0x4969fe
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x38], ecx
cmp ebx, dword [esp + 0x20]
jne 0x4968d7
inc edi
cmp edi, dword [esp + 0x18]
jge 0x4968a4
mov edx, dword [esp + edi*4 + 0xe4]
jmp 0x4968ab
mov edx, dword [esp + edi*4 + 0xf8]
movzx eax, byte [edx + 1]
movzx ecx, word [edx + 0x12]
mov edx, dword [edx + 0x38]
add ecx, eax
xor eax, eax
mov dword [esp + 0x50], edx
cmp dword [esp + 0x34], eax
sete al
add eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp ebx, dword [esp + eax + 0x78]
jne 0x4968ff
mov eax, dword [esp + 0x58]
inc eax
mov dword [esp + 0x58], eax
shl eax, 2
cmp dword [esp + 0x34], 0
mov dword [esp + 0x14], eax
mov esi, dword [esp + eax + 0xe4]
je 0x4969e8
cmp edi, dword [esp + 0x18]
jge 0x496923
mov eax, dword [esi + 0x48]
cmp eax, dword [esp + edi*4 + 0xb8]
jne 0x496923
cmp ecx, edx
jb 0x496923
mov eax, dword [esp + 0x44]
add eax, edx
cmp ecx, eax
jb 0x4969e4
cmp word [esp + 0x5c], 0
jne 0x496969
movzx edx, byte [ecx]
lea eax, [esp + 0x1c]
push eax
movzx eax, byte [ecx + 1]
push dword [esi + 0x48]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esp + 0x38]
shl edx, 8
push 5
or edx, eax
call fcn.0048f5c0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], ecx
jmp 0x49696d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ax, word [eax + ebx*2]
cmp ax, word [esi + 0xc]
jbe 0x4969e4
test ecx, ecx
jne 0x4969e4
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.0048f7f0
mov ax, word [esp + 0xb6]
add esp, 4
test ax, ax
je 0x4969e4
movzx ecx, ax
lea eax, [esp + 0x1c]
add ecx, dword [esp + 0x38]
push eax
push dword [esi + 0x48]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esi + 0x34]
shl edx, 8
push 3
or edx, eax
call fcn.0048f5c0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x496883
mov esi, dword [esp + 0xe4]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
test eax, eax
jle 0x496b51
nop
mov eax, dword [esp + ebx*4 + 0x78]
mov edx, dword [esp + 0x48]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + ebx*4 + 0xe4]
mov edi, dword [esp + 0x68]
add edi, dword [esp + 0x4c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x5c]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [esp + 0x40]
add edx, eax
cmp byte [ecx + 5], 0
jne 0x496a5d
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x496b04
cmp dword [esp + 0x34], 0
je 0x496aee
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xb8]
push eax
mov edx, dword [edx - 4]
call fcn.0048f7f0
mov edx, dword [esp + 0xc0]
add esp, 4
mov ecx, dword [esp + 0xb8]
mov esi, edi
test edx, edx
ja 0x496ada
jb 0x496a9a
cmp ecx, 0x7f
ja 0x496aac
mov eax, 1
and cl, 0x7f
mov byte [edi + 4], cl
xor edi, edi
lea edx, [eax + 4]
jmp 0x496b04
test edx, edx
ja 0x496ada
jb 0x496aba
cmp ecx, 0x3fff
ja 0x496ada
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [edi + 5], cl
or al, 0x80
shr edx, 7
mov byte [edi + 4], al
mov eax, 2
xor edi, edi
lea edx, [eax + 4]
jmp 0x496b04
push edx
push ecx
lea ecx, [edi + 4]
call fcn.00480b50
add esp, 8
xor edi, edi
lea edx, [eax + 4]
jmp 0x496b04
sub esi, 4
cmp eax, 4
jne 0x496b08
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.0048f930
movzx edx, ax
mov ecx, dword [esp + 0x40]
add dword [esp + 0x68], edx
lea eax, [esp + 0x1c]
push eax
push dword [ecx + 0x48]
mov ecx, dword [esp + 0x34]
push edi
push edx
mov edx, dword [esp + 0x64]
push esi
lea edx, [edx + ebx]
call fcn.00495090
mov edi, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x10], edi
test edi, edi
jne 0x496d42
mov edi, dword [esp + 0x18]
inc ebx
lea eax, [edi - 1]
cmp ebx, eax
jl 0x496a10
mov esi, dword [esp + 0xe4]
mov ebx, 1
sub ebx, edi
cmp ebx, edi
jge 0x496c1a
mov edi, dword [esp + 0x78]
mov eax, ebx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [esp + esi + 0x104], 0
jne 0x496c04
test ebx, ebx
jns 0x496b90
mov eax, dword [esp + esi*4 + 0xcc]
cmp eax, dword [esp + esi*4 + 0x74]
jl 0x496c04
test esi, esi
jne 0x496b9c
xor edx, edx
mov ecx, edi
xor eax, eax
jmp 0x496bcb
cmp esi, dword [esp + 0x3c]
jge 0x496bb4
xor edx, edx
cmp dword [esp + 0x34], edx
sete dl
add edx, dword [esp + esi*4 + 0xcc]
jmp 0x496bb8
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + esi*4 + 0x78]
xor eax, eax
cmp dword [esp + 0x34], eax
sete al
add eax, dword [esp + esi*4 + 0x74]
sub ecx, eax
push dword [esp + 0x28]
push dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + esi*4 + 0xf0]
push eax
call fcn.004958b0
mov eax, dword [esp + esi*4 + 0xf4]
add esp, 0x10
mov cx, word [esp + 0x64]
sub cx, word [esp + esi*4 + 0x8c]
mov byte [esp + esi + 0x104], 1
mov word [eax + 0x10], cx
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x496b64
mov esi, dword [esp + 0xe4]
mov edi, dword [esp + 0x18]
cmp dword [ebp + 0xc], 0
je 0x496c85
mov ebx, dword [esp + 0x2c]
cmp word [ebx + 0x12], 0
jne 0x496c85
movzx eax, byte [ebx + 6]
cmp ax, word [esi + 0x10]
ja 0x496c85
mov ecx, esi
call fcn.0048fa70
mov ecx, dword [esp + 0xe4]
mov edx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00495ce0
mov edi, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
jne 0x496cf0
mov ecx, dword [esp + 0xe4]
mov edx, ecx
push dword [ecx + 0x48]
mov ecx, dword [ecx + 0x34]
call fcn.00494640
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x496cf0
mov ebx, dword [esp + 0x30]
cmp byte [ebx + 0x11], 0
je 0x496cec
cmp word [esp + 0x5c], 0
jne 0x496cec
xor esi, esi
test edi, edi
jle 0x496cec
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0xe4]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax + 0x38]
push dword [eax + 0x48]
push 5
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
mov ecx, ebx
or edx, eax
call fcn.0048f5c0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x496ca0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x496cf0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
cmp esi, ebx
jge 0x496d42
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0xf8]
test edi, edi
jne 0x496d1d
push dword [ecx + 0x48]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00494640
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x496d00
mov dword [esp + 0x10], edi
jmp 0x496d42
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0xfc]
push 0
push eax
call fcn.0052ebd0
add esp, 0xc
mov ecx, dword [esp + 0x48]
call fcn.0047cd60
mov edi, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x4c], esi
test edi, edi
jle 0x496dea
lea ecx, [ecx]
mov ecx, dword [esp + esi*4 + 0xf8]
test ecx, ecx
je 0x496ddd
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
je 0x496dbf
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x5c]
add esp, 0x10
mov edi, dword [esp + 0x3c]
jmp 0x496dc4
call fcn.00485670
cmp dword [ebx + 0x78], 0
jne 0x496ddd
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x496ddd
mov ecx, ebx
call fcn.00488090
inc esi
mov dword [esp + 0x4c], esi
cmp esi, edi
jl 0x496d60
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x4c], esi
test edi, edi
jle 0x496e8a
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0xe4]
test ecx, ecx
je 0x496e7d
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
je 0x496e5f
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x5c]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x496e64
call fcn.00485670
cmp dword [ebx + 0x78], 0
jne 0x496e7d
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x496e7d
mov ecx, ebx
call fcn.00488090
inc esi
mov dword [esp + 0x4c], esi
cmp esi, edi
jl 0x496e00
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret