Function at 0x493f4c
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x15c
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x158], eax
mov edx, dword [esp + 0x160]
xor eax, eax
mov ecx, dword [esp + 0x168]
push ebx
mov ebx, dword [esp + 0x170]
push ebp
mov ebp, dword [esp + 0x17c]
push esi
mov esi, dword [esp + 0x170]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], eax
mov byte [esp + 0x1f], al
mov byte [esp + 0xf], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x17], al
mov dword [esp + 0x4c], eax
push edi
test esi, esi
jne 0x493fd5
test ecx, ecx
mov eax, 0x4ff5cd
cmovne eax, esi
mov esi, eax
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x180]
test edi, 0x1fff9fc0
jne 0x494f12
test edx, edx
je 0x494f0e
test esi, esi
je 0x494f0e
test ebp, ebp
je 0x494f0e
lea eax, [ebx + esi]
mov dword [esp + 0x80], eax
mov ebx, eax
mov dword [esp + 0x3c], ebx
lea eax, [ebx - 1]
mov dword [esp + 0x6c], eax
cmp ecx, 0xffffffff
jne 0x494035
push esi
call fcn.0049502d
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, eax
mov dword [esp + 0x74], 1
mov dword [esp + 0x44], ecx
lea eax, [ecx + esi]
mov esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x84], eax
cmp dword [esp + 0x48], ecx
jbe 0x494052
push 0xffffffffffffffdf
jmp 0x494f14
cmp dword [edx + 0x38], 0x50435245
je 0x494062
push 0xffffffffffffffe1
jmp 0x494f14
mov ecx, dword [edx + 0x48]
mov eax, ecx
and al, 7
cmp al, 1
je 0x494074
push 0xffffffffffffffe0
jmp 0x494f14
shr ecx, 0xe
and ecx, 0xc
mov dword [esp + 0x40], 2
or edi, ecx
mov dword [esp + 0x180], edi
mov edi, dword [edx + 0x40]
mov eax, edi
mov edx, dword [esp + 0x180]
shr eax, 0x13
and eax, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and eax, 1
test dl, 0x20
cmovne eax, dword [esp + 0x40]
movzx eax, ax
mov word [esp + 0x104], ax
test ax, ax
je 0x4940d4
mov eax, edi
or eax, edx
test eax, 0x20000000
jne 0x494f12
mov eax, dword [esp + 0x188]
test eax, eax
je 0x4940f4
cmp dword [eax + 0x1c], 0xffffffff
je 0x4940f4
test edi, 0x800000
jne 0x4940f4
push 0xffffffffffffffc8
jmp 0x494f14
test byte [ebp + 0x2d], 1
je 0x494109
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [ebp + 4]
and byte [ebp + 0x2d], 0xfe
pop ecx
pop ecx
mov eax, dword [esp + 0x34]
xor edx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x28], edx
mov dword [esp + 0x118], eax
cmp dword [esp + 0x14], edx
je 0x494244
test dword [esp + 0x180], 0x40000000
mov ecx, 0x4000000
je 0x494140
test ecx, edi
je 0x494244
mov eax, edi
and eax, ecx
mov ecx, dword [esp + 0x1c]
cmp ebx, ecx
jae 0x494164
test eax, eax
je 0x49418f
mov al, byte [ebx]
and al, 0xc0
cmp al, 0x80
jne 0x494164
xor edx, edx
inc ebx
inc edx
mov dword [esp + 0x3c], ebx
cmp ebx, ecx
jb 0x494150
mov ecx, ebx
mov dword [esp + 0x118], ecx
test edx, edx
jne 0x49421f
mov eax, dword [esp + 0x24]
movzx edx, word [eax + 0x64]
test edx, edx
je 0x49421f
mov edi, dword [esp + 0x34]
cmp ecx, edi
jbe 0x4941c3
jmp 0x4941b2
mov al, byte [ebx]
and al, 0xc0
cmp al, 0x80
jne 0x494164
xor eax, eax
cmp eax, dword [esp + 0x48]
sbb eax, eax
and eax, 0xfffffff2
add eax, 0xffffffea
jmp 0x494f15
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x4941be
dec ecx
mov dword [esp + 0x118], ecx
cmp ecx, edi
ja 0x4941aa
sub edx, 1
jne 0x494189
mov edi, dword [esp + 0x28]
jmp 0x49421f
mov ecx, dword [esp + 0x118]
sub ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x28]
add eax, ecx
mov dword [ebp + 0x28], eax
test edi, 0x4000000
je 0x494e4e
xor edx, edx
cmp dword [ebp + 0x30], edx
jg 0x494e4e
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
jb 0x494213
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], eax
jmp 0x494244
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x49421f
inc ecx
mov dword [esp + 0x118], ecx
cmp ecx, ebx
jb 0x49420b
lea eax, [ebp + 0x28]
push eax
mov eax, dword [esp + 0x48]
sub eax, ecx
add eax, dword [esp + 0x38]
push eax
push ecx
call fcn.00497f1f
add esp, 0xc
mov dword [ebp + 0x30], eax
test eax, eax
jne 0x4941c9
mov dword [esp + 0x1c], esi
xor edx, edx
mov eax, dword [esp + 0x188]
lea edi, [esp + 0xc8]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x49425c
mov esi, eax
movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [esp + 0xc4], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x549ad4
cmovne edi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x40]
mov esi, ecx
or esi, dword [esp + 0x180]
mov eax, dword [eax + 0x48]
shr esi, 0x1f
mov dword [esp + 0x58], esi
mov esi, ecx
shr eax, 9
shr esi, 8
and eax, 1
and esi, 1
mov dword [esp + 0x60], eax
cmp dword [edi + 0x1c], 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x44]
cmovne esi, dword [edi + 0x1c]
add esi, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x7c], esi
lea esi, [esp + 0x88]
mov dword [esp + 0x15c], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x34]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x164], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x11c], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xfc], eax
mov eax, dword [esi + 0x48]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe8], eax
cmp word [esi + 0x64], dx
ja 0x49433f
test dword [esi + 0x48], 0x2000
jne 0x49433f
mov eax, edx
jmp 0x494342
xor eax, eax
inc eax
mov dword [esp + 0xec], eax
add esi, 0x70
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14c], edx
mov dword [esp + 0x130], edx
mov dword [esp + 0x12c], edx
movzx edx, word [eax + 0x6e]
movzx eax, word [eax + 0x6c]
mov dword [esp + 0x144], ecx
mov ecx, eax
imul ecx, edx
mov word [esp + 0x108], dx
mov edx, dword [esp + 0x24]
mov word [esp + 0x10a], ax
mov dword [esp + 0x10c], esi
add ecx, esi
mov ax, word [edx + 0x60]
mov word [esp + 0x106], ax
movzx eax, word [edx + 0x62]
mov dword [esp + 0x110], ecx
xor ecx, ecx
mov dword [esp + 0x150], ecx
sub eax, 1
je 0x49441f
sub eax, 1
je 0x494415
sub eax, 1
je 0x4943fe
sub eax, 1
je 0x4943f1
sub eax, 1
je 0x4943e4
sub eax, 1
je 0x4943db
push 0xffffffffffffffd4
jmp 0x494f14
mov byte [esp + 0x158], cl
jmp 0x494427
mov eax, dword [esp + 0x40]
mov dword [esp + 0x150], eax
jmp 0x494432
mov dword [esp + 0x150], 1
jmp 0x494432
mov eax, dword [esp + 0x40]
mov dword [esp + 0x154], eax
mov word [esp + 0x158], 0xa0d
jmp 0x494432
mov byte [esp + 0x158], 0xa
jmp 0x494427
mov byte [esp + 0x158], 0xd
mov dword [esp + 0x154], 1
movzx eax, word [edx + 0x68]
mov ecx, dword [edi + 0x20]
lea esi, [eax*8 + 0x57]
mov eax, dword [edi + 0x24]
and esi, 0xfffffffc
cmp ecx, dword [edx + 0x4c]
mov dword [esp + 0x54], esi
cmovae ecx, dword [edx + 0x4c]
shl ecx, 0xa
cmp eax, dword [edx + 0x50]
mov dword [esp + 0xd4], ecx
cmovae eax, dword [edx + 0x50]
mov dword [esp + 0xd8], eax
mov eax, dword [edi + 0x28]
cmp eax, dword [edx + 0x54]
mov edi, dword [esp + 0x54]
cmovae eax, dword [edx + 0x54]
imul esi, esi, 0xa
mov dword [esp + 0xdc], eax
mov eax, 0x5000
cmp esi, eax
cmovb esi, eax
cmp esi, ecx
jbe 0x49449c
cmp edi, ecx
jbe 0x49449a
push 0xffffffffffffffc1
jmp 0x494f14
mov esi, ecx
cmp dword [ebp + 0x1c], esi
jae 0x4944c8
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [ebp + 4]
push dword [ebp + 8]
push esi
call dword [ebp]
add esp, 0x10
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4944c5
and dword [ebp + 0x1c], eax
push 0xffffffffffffffd0
jmp 0x494f14
mov dword [ebp + 0x1c], esi
lea eax, [edi - 0x54]
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x54
push 0xff
push eax
call fcn.004b6f20
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edi, dword [esp + 0x28]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0xf0], eax
lea esi, [eax + 0x100]
add eax, 0x340
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf8], eax
test dl, 0x10
je 0x494691
mov al, byte [ecx + 0x58]
mov dword [esp + 0x30], 1
mov ah, al
mov byte [esp + 0x13], al
mov byte [esp + 0x23], ah
test dl, 0x20
je 0x4946a4
movzx ecx, al
cmp ah, 0x7f
mov al, byte [ecx + esi]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
jbe 0x494586
test edi, 0x20000
je 0x494586
test eax, eax
jne 0x494586
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x550a58]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x554e58]
imul eax, eax, 0xc
mov al, byte [eax + 0x54c84c]
add al, byte [esp + 0x23]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
test dl, dl
jns 0x4945f4
mov cl, byte [ecx + 0x5c]
mov dword [esp + 0x68], 1
mov byte [esp + 0x1b], cl
mov byte [esp + 0x2f], cl
test edx, 0x100
je 0x4945f4
movzx ecx, cl
mov dl, byte [esi + ecx]
mov byte [esp + 0x1b], dl
mov dl, byte [esp + 0x2f]
cmp dl, 0x7f
jbe 0x4945f4
test edi, 0x20000
je 0x4945f4
test eax, eax
jne 0x4945f4
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x550a58]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x554e58]
imul eax, eax, 0xc
mov cl, byte [eax + 0x54c84c]
add cl, dl
mov byte [esp + 0x1b], cl
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov edi, ecx
mov dword [esp + 0x78], ecx
mov eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x24]
test dword [esi + 0x40], 0x10000
jne 0x494b74
cmp dword [esp + 0x70], 0
mov edi, dword [esp + 0x154]
je 0x494793
cmp dword [esp + 0x14], 0
mov esi, ebx
je 0x4946ff
cmp ebx, edx
jae 0x49478d
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x11c]
test ecx, ecx
je 0x4946bd
cmp esi, eax
jae 0x4946ad
push dword [esp + 0x14]
lea edx, [esp + 0x158]
push edx
push eax
push ecx
push esi
call fcn.004966b5
mov edi, dword [esp + 0x168]
add esp, 0x14
mov ecx, dword [esp + 0x150]
test eax, eax
je 0x4946ad
xor eax, eax
inc eax
jmp 0x4946af
cmp dword [esp + 0x60], 0
jne 0x4946a4
test dl, 0x40
je 0x4946a4
lea eax, [ecx + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
jmp 0x49458a
xor eax, eax
test eax, eax
jne 0x494787
mov edx, dword [esp + 0x1c]
jmp 0x4946f5
sub eax, edi
cmp esi, eax
ja 0x4946f5
mov al, byte [esi]
cmp al, byte [esp + 0x158]
jne 0x4946f5
cmp edi, 1
je 0x494787
mov al, byte [esi + 1]
cmp al, byte [esp + 0x159]
je 0x494787
jmp 0x4946f5
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x494654
inc esi
cmp esi, edx
jb 0x4946e9
jmp 0x494787
cmp ebx, edx
jae 0x49478d
mov ecx, dword [esp + 0x150]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x11c]
test ecx, ecx
je 0x494758
cmp esi, eax
jae 0x49474c
push ebx
lea edx, [esp + 0x158]
push edx
push eax
push ecx
push esi
call fcn.004966b5
mov edi, dword [esp + 0x168]
add esp, 0x14
mov ecx, dword [esp + 0x150]
test eax, eax
je 0x49474c
xor eax, eax
inc eax
jmp 0x49474e
xor eax, eax
test eax, eax
jne 0x49477f
mov edx, dword [esp + 0x1c]
jmp 0x49477a
sub eax, edi
cmp esi, eax
ja 0x49477a
mov al, byte [esi]
cmp al, byte [esp + 0x158]
jne 0x49477a
cmp edi, 1
je 0x49477f
mov al, byte [esi + 1]
cmp al, byte [esp + 0x159]
je 0x49477f
inc esi
cmp esi, edx
jb 0x494712
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edx, esi
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x58], 0
je 0x494835
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
test edi, edi
jne 0x4947b2
test esi, esi
je 0x494aaf
cmp ebx, edx
sbb eax, eax
neg eax
cmp ebx, edx
jae 0x4947f3
mov al, byte [ebx]
test edi, edi
je 0x4947d6
cmp al, byte [esp + 0x23]
je 0x494aaf
cmp al, byte [esp + 0x13]
je 0x494aaf
test esi, esi
je 0x4947fd
movzx edx, al
xor eax, eax
mov ecx, edx
inc eax
and ecx, 7
shr edx, 3
shl eax, cl
push 0
test byte [edx + esi], al
pop eax
setne al
test eax, eax
jne 0x494aaf
xor ecx, ecx
mov esi, ecx
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
je 0x494da4
mov edi, dword [esp + 0x84]
cmp edx, edi
je 0x494da4
test esi, esi
je 0x49482a
cmp esi, 0xfffffffe
jne 0x494da4
lea esi, [ebp + 0x28]
lea ebx, [edx + 1]
jmp 0x494d9c
cmp dword [esp + 0x30], 0
je 0x4948fe
mov cl, byte [esp + 0x13]
mov edi, edx
mov ch, byte [esp + 0x23]
sub edi, ebx
cmp ch, cl
je 0x4948e2
test eax, eax
je 0x49486c
cmp ebx, eax
ja 0x49486c
and dword [esp + 0x3c], 0
mov esi, eax
cmp eax, edx
cmove esi, dword [esp + 0x3c]
jmp 0x49488d
push edi
movzx eax, ch
push eax
push ebx
call fcn.004b9200
mov edx, dword [esp + 0x28]
mov esi, eax
mov cl, byte [esp + 0x1f]
add esp, 0xc
test esi, esi
cmove eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4948a4
cmp ebx, eax
ja 0x4948a4
xor ecx, ecx
mov ebx, eax
cmp eax, edx
cmove ebx, ecx
jmp 0x4948c1
push edi
movzx eax, cl
push eax
push ebx
call fcn.004b9200
mov edx, dword [esp + 0x28]
mov ebx, eax
add esp, 0xc
test ebx, ebx
cmove eax, edx
mov dword [esp + 0x5c], eax
test esi, esi
jne 0x4948cf
test ebx, ebx
cmove ebx, edx
jmp 0x494a93
test ebx, ebx
je 0x4948db
cmp esi, ebx
jae 0x494a93
mov ebx, esi
jmp 0x494a93
push edi
movzx eax, ch
push eax
push ebx
call fcn.004b9200
mov ebx, eax
add esp, 0xc
test ebx, ebx
cmove ebx, dword [esp + 0x1c]
jmp 0x494a93
cmp dword [esp + 0x60], 0
je 0x494a69
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x114]
add eax, edx
cmp ebx, eax
jbe 0x494aab
mov esi, dword [esp + 0x1c]
cmp ebx, esi
jae 0x494a41
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4949c4
mov eax, dword [esp + 0x150]
test eax, eax
je 0x49497c
cmp ebx, edx
jbe 0x494970
push ecx
lea ecx, [esp + 0x158]
push ecx
push edx
push eax
push ebx
call fcn.0049682a
mov edx, dword [esp + 0x128]
add esp, 0x14
mov edi, dword [esp + 0x154]
test eax, eax
je 0x494970
xor eax, eax
inc eax
jmp 0x494972
xor eax, eax
test eax, eax
jne 0x494a41
jmp 0x4949ab
lea eax, [edx + edi]
cmp ebx, eax
jb 0x4949bd
mov ecx, ebx
sub ecx, edi
mov al, byte [ecx]
cmp al, byte [esp + 0x158]
jne 0x4949ab
cmp edi, 1
je 0x494a41
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x159]
je 0x494a41
mov ecx, dword [esp + 0x14]
jmp 0x4949bd
mov al, byte [ebx]
and al, 0xc0
cmp al, 0x80
jne 0x494936
inc ebx
cmp ebx, esi
jb 0x4949b1
jmp 0x494a41
mov ebp, dword [esp + 0x150]
test ebp, ebp
je 0x494a0d
cmp ebx, edx
jbe 0x494a05
push ecx
lea eax, [esp + 0x158]
push eax
push edx
push ebp
push ebx
call fcn.0049682a
mov edx, dword [esp + 0x128]
add esp, 0x14
mov edi, dword [esp + 0x154]
mov ebp, dword [esp + 0x150]
test eax, eax
je 0x494a05
xor eax, eax
inc eax
jmp 0x494a07
xor eax, eax
test eax, eax
jne 0x494a3d
jmp 0x494a34
lea eax, [edx + edi]
cmp ebx, eax
jb 0x494a38
mov ecx, ebx
sub ecx, edi
mov al, byte [ecx]
cmp al, byte [esp + 0x158]
jne 0x494a34
cmp edi, 1
je 0x494a3d
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x159]
je 0x494a3d
mov ecx, dword [esp + 0x14]
inc ebx
cmp ebx, esi
jb 0x4949cb
mov ebp, dword [esp + 0x64]
cmp byte [ebx - 1], 0xd
jne 0x494aab
mov eax, dword [esp + 0x150]
cmp eax, 1
je 0x494a59
cmp eax, dword [esp + 0x40]
jne 0x494aab
cmp ebx, esi
jae 0x494aab
cmp byte [ebx], 0xa
mov edi, dword [esp + 0x30]
jne 0x494aaf
inc ebx
jmp 0x494aaf
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x494aab
cmp ebx, edx
jae 0x494a93
mov esi, dword [esp + 0x1c]
movzx edx, byte [ebx]
xor eax, eax
mov ecx, edx
inc eax
and ecx, 7
shr edx, 3
shl eax, cl
test byte [edx + edi], al
jne 0x494a93
inc ebx
cmp ebx, esi
jb 0x494a79
cmp word [esp + 0x104], 0
jne 0x494aab
cmp ebx, dword [esp + 0x11c]
jae 0x4947fb
mov edi, dword [esp + 0x30]
cmp word [esp + 0x104], 0
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x1c], edx
jne 0x494b60
mov ecx, edx
mov edx, dword [esp + 0x24]
sub ecx, ebx
movzx eax, word [edx + 0x66]
cmp ecx, eax
jl 0x4947fb
cmp dword [esp + 0x68], 0
lea esi, [edi + ebx]
je 0x494b6c
cmp esi, dword [esp + 0x6c]
jbe 0x494b6c
cmp ecx, 0x1388
jb 0x494b08
cmp dword [esp + 0x58], 0
jne 0x494b6c
cmp ecx, 0x4c4b40
jae 0x494b6c
mov al, byte [esp + 0x2f]
movzx ecx, al
cmp al, byte [esp + 0x1b]
je 0x494b36
mov edi, dword [esp + 0x11c]
sub edi, esi
push edi
push ecx
push esi
call fcn.004b9200
add esp, 0xc
test eax, eax
jne 0x494b52
movzx eax, byte [esp + 0x1b]
push edi
push eax
jmp 0x494b41
mov eax, dword [esp + 0x11c]
sub eax, esi
push eax
push ecx
push esi
call fcn.004b9200
add esp, 0xc
test eax, eax
je 0x4947fb
cmp eax, dword [esp + 0x1c]
jae 0x4947fb
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x38]
xor ecx, ecx
mov edx, dword [esp + 0x24]
jmp 0x494b76
mov edi, dword [esp + 0x38]
xor ecx, ecx
jmp 0x494b76
mov edx, esi
cmp ebx, dword [esp + 0x7c]
ja 0x4947fd
or dword [esp + 0xc4], 1
mov eax, ebx
sub eax, dword [esp + 0x34]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x180]
mov dword [esp + 0x140], eax
lea eax, [esp + 0xc8]
push eax
movzx eax, word [edx + 0x68]
push ebp
push dword [esp + 0x5c]
mov dword [esp + 0x130], ebx
push eax
push dword [esp + 0x120]
mov dword [esp + 0x13c], ebx
push ebx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x118], ecx
mov dword [esp + 0x160], ecx
call fcn.0048695e
add esp, 0x18
mov esi, eax
cmp dword [esp + 0xe4], 0
je 0x494c0b
test edi, edi
jne 0x494c0b
mov eax, dword [esp + 0x124]
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], ebx
cmp esi, 0xfffffc1b
je 0x4947fb
cmp esi, 0xfffffc1c
je 0x494ca4
cmp esi, 0xfffffc1d
je 0x494c99
cmp esi, 0xfffffc1e
je 0x494c46
cmp esi, 0xfffffc1f
je 0x494ca4
test esi, esi
je 0x494ca4
xor ecx, ecx
jmp 0x4947ff
mov eax, dword [esp + 0x148]
mov edi, ebx
mov dword [esp + 0x14c], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x150]
xor esi, esi
cmp dword [esp + 0x70], esi
je 0x494cdb
mov eax, dword [esp + 0x11c]
test edx, edx
je 0x494d55
cmp ebx, eax
jae 0x494cca
push ecx
lea ecx, [esp + 0x158]
push ecx
push eax
push edx
push ebx
call fcn.004966b5
add esp, 0x14
test eax, eax
je 0x494cca
xor eax, eax
inc eax
jmp 0x494ccc
mov edi, dword [esp + 0x138]
cmp edi, ebx
ja 0x494c56
and dword [esp + 0x14c], 0
lea edi, [ebx + 1]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x494c5a
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
jae 0x494c56
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x494c56
inc edi
jmp 0x494cbb
xor eax, eax
test eax, eax
jne 0x494c3f
mov edx, dword [esp + 0x150]
mov ecx, dword [esp + 0x154]
mov ebx, edi
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x58], esi
jne 0x494c3f
mov eax, dword [esp + 0x1c]
cmp edi, eax
ja 0x494c3f
cmp edi, dword [esp + 0x80]
jbe 0x494d3b
cmp byte [edi - 1], 0xd
jne 0x494d3b
cmp edi, eax
jae 0x494d3b
cmp byte [edi], 0xa
jne 0x494d3b
mov eax, dword [esp + 0x24]
test dword [eax + 0x48], 0x800
jne 0x494d3b
cmp edx, 1
je 0x494d34
mov eax, dword [esp + 0x40]
cmp edx, eax
je 0x494d34
cmp ecx, eax
jne 0x494d3b
lea ebx, [edi + 1]
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x12c], ecx
jmp 0x494615
mov ecx, dword [esp + 0x154]
sub eax, ecx
cmp ebx, eax
ja 0x494ce2
mov al, byte [ebx]
cmp al, byte [esp + 0x158]
jne 0x494ce2
cmp ecx, 1
je 0x494c3f
mov al, byte [ebx + 1]
cmp al, byte [esp + 0x159]
je 0x494c3f
jmp 0x494ce2
mov al, byte [ebx]
and al, 0xc0
cmp al, 0x80
jne 0x494e56
inc ebx
cmp ebx, edi
jb 0x494d8f
xor ecx, ecx
mov esi, ecx
mov eax, dword [esp + 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x12c]
mov dword [ebp + 0x14], eax
mov byte [ebp + 0x2c], cl
cmp esi, 1
jne 0x494ec4
movzx eax, word [ebp + 0x2e]
add eax, eax
cmp dword [esp + 0x100], eax
jge 0x494ddf
mov eax, dword [esp + 0x100]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
inc ecx
mov esi, dword [esp + 0x34]
sub ebx, esi
mov eax, dword [esp + 0x124]
sub eax, esi
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x120]
cmp dword [esp + 0x128], eax
mov dword [ebp + 0x28], ebx
cmova eax, dword [esp + 0x128]
sub eax, esi
test dword [esp + 0x180], 0x4000
mov dword [ebp + 0x24], eax
je 0x494ebf
mov ebx, dword [esp + 0x44]
push dword [ebp + 8]
add ebx, dword [esp + 0x78]
push ebx
call dword [ebp]
mov dword [ebp + 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x4944be
push ebx
push esi
push eax
call fcn.004b8970
add esp, 0xc
or byte [ebp + 0x2d], 1
mov eax, dword [ebp + 0x30]
jmp 0x494f15
mov eax, dword [esp + 0x44]
sub eax, ebx
mov dword [esp + 0x118], ebx
add eax, dword [esp + 0x34]
push esi
push eax
push ebx
call fcn.00497f1f
add esp, 0xc
test eax, eax
je 0x494ea1
mov edx, dword [esp + 0x1c]
jns 0x49482d
mov edx, dword [esi]
add edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x11c], edx
cmp edx, ebx
jbe 0x49482d
mov dword [esp + 0x50], 3
jmp 0x494eb6
mov edx, edi
mov dword [esp + 0x11c], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], 1
mov dword [esp + 0x3c], ebx
jmp 0x4945f8
mov dword [ebp + 0x10], esi
jmp 0x494e4e
mov eax, dword [esp + 0x130]
mov dword [ebp + 0x14], eax
test esi, esi
je 0x494ed7
cmp esi, 0xfffffffe
jne 0x494f07
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x494f04
mov eax, dword [esp + 0x34]
sub ecx, eax
mov dword [ebp + 0x34], ecx
sub edx, eax
mov dword [ebp + 0x28], ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [ebp + 0x10], eax
push 0xfffffffffffffffe
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
pop esi
jmp 0x494f07
or esi, 0xffffffff
mov dword [ebp + 0x30], esi
mov eax, esi
jmp 0x494f15
push 0xffffffffffffffcd
jmp 0x494f14
push 0xffffffffffffffde
pop eax
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b5ec4
add esp, 0x15c
ret