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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5174
call fcn.00623d50
mov eax, dword [0x96c07c]
xor eax, esp
mov dword [esp + 0x5170], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [eax + eax]
mov dword [esp + 0x6c], ecx
add ecx, edx
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x78], ecx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x20], edx
lea ecx, [esi - 2]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x178]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
cmp ecx, 0xffffffff
jne 0x478611
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x2c], ecx
cmp word [edx], cx
je 0x478605
lea eax, [eax + 2]
inc ecx
cmp word [eax], bx
jne 0x4785f8
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], 1
test dword [ebp + 0x10], 0x1fff9fc0
lea ecx, [edx + ecx*2]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], ecx
je 0x47863f
mov eax, 0xffffffde
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], ebx
je 0x47994a
test edx, edx
je 0x47994a
test edi, edi
je 0x47994a
cmp eax, dword [esp + 0x2c]
jbe 0x478679
mov eax, 0xffffffdf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x38], 0x50435245
je 0x4786a0
mov eax, 0xffffffe1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x48]
mov eax, ecx
and al, 7
cmp al, 2
je 0x4786c5
mov eax, 0xffffffe0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
shr ecx, 0xe
and ecx, 0xc
or eax, ecx
mov dword [ebp + 0x10], eax
cmp dword [edx + 0x10], ebx
je 0x4786e6
test eax, 0xbfffbfc0
jne 0x4786e6
mov edi, 1
jmp 0x4786e8
xor edi, edi
mov ecx, dword [edx + 0x40]
mov eax, ecx
shr eax, 0x13
mov edx, ecx
and eax, 1
shr edx, 0x1a
mov dword [esp + 0x10], eax
and edx, 1
mov eax, ecx
mov dword [esp + 0x24], edx
shr eax, 0x11
and eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
test al, 0x20
je 0x478729
mov edx, 2
mov word [esp + 0x10c], dx
mov edx, dword [esp + 0x24]
jmp 0x47873c
shr eax, 4
and eax, 1
mov word [esp + 0x10c], ax
je 0x47874a
mov eax, dword [ebp + 0x10]
or ecx, eax
test ecx, 0x20000000
jne 0x478625
mov eax, dword [esp + 0x30]
test byte [eax + 0x25], 1
je 0x47876e
push dword [eax + 8]
push dword [eax + 0x10]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esp + 0x38]
add esp, 8
mov edx, dword [esp + 0x24]
and byte [eax + 0x25], 0xfe
mov dword [eax + 0x10], ebx
lea ecx, [eax + 0x20]
mov dword [esp + 0x58], ecx
mov dword [ecx], ebx
mov dword [esp + 0x50], 0xfc00
mov dword [esp + 0x3c], 0xdc00
test edi, edi
je 0x478902
cmp dword [esp + 0x10], ebx
je 0x47886b
test dword [ebp + 0x10], 0x40000000
jne 0x47886b
test edx, edx
jne 0x47886b
mov ebx, 0xfc00
mov edi, 0xdc00
cmp esi, dword [esp + 0xc]
jae 0x4787ef
mov ax, word [esi]
and ax, bx
cmp ax, di
jne 0x4787ef
xor eax, eax
cmp eax, dword [esp + 0x28]
sbb eax, eax
and eax, 0xfffffff6
add eax, 0xffffffe6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
movzx ecx, word [eax + 0x64]
test ecx, ecx
je 0x478827
nop
cmp esi, edx
jbe 0x478827
sub esi, 2
cmp esi, edx
jbe 0x478822
nop dword [eax + eax]
mov ax, word [esi]
and ax, bx
cmp ax, di
jne 0x478822
sub esi, 2
cmp esi, edx
ja 0x478810
sub ecx, 1
jne 0x478800
mov ebx, dword [esp + 0x58]
mov edi, esi
sub edi, edx
mov ecx, esi
mov edx, dword [esp + 0x2c]
sar edi, 1
push ebx
sub edx, edi
call fcn.00483f90
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx + 0x28], eax
test eax, eax
je 0x478864
add dword [ebx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov eax, ecx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [esp + 0x34]
push dword [esp + 0x3c]
call fcn.00484dd0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffd3
je 0x478902
test edi, edi
js 0x4788eb
test dword [ebp + 0x10], 0x4000
je 0x4788eb
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea esi, [esi + ecx]
push dword [ebx + 8]
mov eax, dword [ebx]
add esi, esi
push esi
call eax
add esp, 8
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x4788d9
mov eax, 0xffffffd0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
push esi
push dword [esp + 0x24]
push eax
call fcn.00628270
add esp, 0xc
or byte [ebx + 0x25], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x120], ecx
je 0x478a8e
test ebx, ebx
jne 0x478a8e
test dword [ebp + 0x10], 0x40000000
mov edi, dword [esp + 0x24]
je 0x478935
test edi, edi
je 0x478a8e
xor edx, edx
test edi, edi
je 0x47896b
mov ecx, dword [esp + 0xc]
cmp esi, ecx
jae 0x47898a
mov ebx, 0xfc00
nop dword [eax + eax]
mov ax, word [esi]
and ax, bx
cmp ax, word [esp + 0x3c]
jne 0x47898a
add esi, 2
mov edx, 1
cmp esi, ecx
jb 0x478950
jmp 0x47898a
cmp esi, dword [esp + 0xc]
jae 0x47898a
mov ax, word [esi]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
je 0x4787cc
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x120], ecx
test edx, edx
jne 0x4789e2
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 0x64]
test edx, edx
je 0x4789e2
cmp ecx, ebx
jbe 0x4789e2
sub ecx, 2
mov dword [esp + 0x120], ecx
cmp ecx, ebx
jbe 0x4789dd
nop dword [eax]
mov ax, word [ecx]
and ax, word [esp + 0x50]
cmp ax, word [esp + 0x3c]
jne 0x4789dd
sub ecx, 2
mov dword [esp + 0x120], ecx
cmp ecx, ebx
ja 0x4789c0
sub edx, 1
jne 0x4789a7
mov edx, dword [esp + 0x58]
mov eax, ecx
push edx
mov edx, dword [esp + 0x30]
sub eax, ebx
sar eax, 1
sub edx, eax
call fcn.00483f90
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx + 0x28], eax
test eax, eax
je 0x478a8e
nop word [eax + eax]
mov eax, dword [esp + 0x120]
lea edx, [ecx + 0x20]
sub eax, ebx
sar eax, 1
add dword [edx], eax
mov eax, dword [edx]
test edi, edi
je 0x478b7b
cmp dword [ecx + 0x28], 0
jg 0x478b7b
lea ecx, [ebx + eax*2]
mov dword [esp + 0xc], ecx
cmp ecx, esi
jae 0x478b6e
add ecx, 2
mov dword [esp + 0x120], ecx
cmp ecx, esi
jae 0x478a6e
mov ax, word [ecx]
and ax, word [esp + 0x50]
cmp ax, word [esp + 0x3c]
jne 0x478a6e
add ecx, 2
mov dword [esp + 0x120], ecx
cmp ecx, esi
jb 0x478a51
mov eax, ecx
push edx
mov edx, dword [esp + 0x30]
sub eax, ebx
sar eax, 1
sub edx, eax
call fcn.00483f90
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx + 0x28], eax
test eax, eax
jne 0x478a10
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x80], 2
mov dword [esp + 0xbc], 0
mov edx, dword [ecx + 0x40]
mov eax, edx
or eax, dword [ebp + 0x10]
movq xmm0, qword [ecx]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0x48]
shr eax, 0x1f
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 8
and eax, 1
movq qword [esp + 0xc0], xmm0
mov dword [esp + 0x70], eax
mov eax, ecx
shr eax, 9
and eax, 1
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], eax
mov eax, edi
sub eax, dword [esp + 0x20]
sar eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x104], eax
mov eax, ecx
shr eax, 0xc
and eax, 1
mov dword [esp + 0x170], 0
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x16c], 0
mov dword [esp + 0x124], edi
cmp word [eax + 0x64], 0
ja 0x478b93
test ecx, 0x2000
jne 0x478b93
xor eax, eax
jmp 0x478b98
mov dword [esp + 0x4c], 2
jmp 0x478a8e
mov eax, dword [ecx + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14c], edx
mov dword [esp + 0x154], 0
mov dword [esp + 0x138], 0
movzx edx, word [eax + 0x6e]
lea edi, [eax + 0x70]
movzx eax, word [eax + 0x6c]
mov word [esp + 0x112], ax
imul eax, edx
mov dword [esp + 0x134], 0
mov dword [esp + 0x114], edi
mov word [esp + 0x110], dx
mov dword [esp + 0x158], 0
lea eax, [edi + eax*2]
mov dword [esp + 0x118], eax
mov ax, word [ecx + 0x60]
mov word [esp + 0x10e], ax
movzx eax, word [ecx + 0x62]
dec eax
cmp eax, 5
ja case.default.0x478c23
jmp dword [eax*4 + 0x479964]
mov eax, 0xd
mov dword [esp + 0x15c], 1
mov word [esp + 0x160], ax
jmp 0x478ca5
mov eax, 0xa
mov dword [esp + 0x15c], 1
mov word [esp + 0x160], ax
jmp 0x478ca5
xor eax, eax
mov dword [esp + 0x15c], 1
mov word [esp + 0x160], ax
jmp 0x478ca5
mov dword [esp + 0x15c], 2
mov dword [esp + 0x160], 0xa000d
jmp 0x478ca5
mov dword [esp + 0x158], 1
jmp 0x478ca5
mov dword [esp + 0x158], 2
movzx eax, word [ecx + 0x68]
mov edx, dword [ecx + 0x4c]
mov dword [esp + 0x28], 0x989680
lea edi, [eax*8 + 0x54]
mov eax, 0x1312d00
cmp edx, eax
mov dword [esp + 0x6c], edi
cmova edx, eax
mov eax, dword [ecx + 0x50]
cmp eax, 0x989680
mov dword [esp + 0xdc], edx
cmova eax, dword [esp + 0x28]
mov dword [esp + 0xe0], eax
mov eax, dword [ecx + 0x54]
cmp eax, 0x989680
cmova eax, dword [esp + 0x28]
mov dword [esp + 0xe4], eax
cmp edi, 0x800
ja 0x478d26
mov ecx, 0x5000
mov edi, dword [esp + 0xd8]
mov eax, ecx
mov dword [esp + 0xd0], edi
xor edx, edx
div dword [esp + 0x6c]
sub ecx, edx
mov dword [esp + 0xcc], ecx
jmp 0x478d91
lea ecx, [edi + edi*4]
add ecx, ecx
mov eax, ecx
mov dword [esp + 0xcc], ecx
shr eax, 0xa
cmp eax, edx
jbe 0x478d6d
mov ecx, edx
shl ecx, 0xa
cmp edi, ecx
jbe 0x478d5e
mov eax, 0xffffffc1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, ecx
xor edx, edx
div edi
sub ecx, edx
mov dword [esp + 0xcc], ecx
push ebx
push ecx
call dword [esp + 0xc8]
mov edi, eax
add esp, 8
mov dword [esp + 0xd0], edi
test edi, edi
je 0x4788bf
mov ecx, dword [esp + 0xcc]
lea eax, [ecx + edi]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x68]
shl eax, 3
push eax
lea eax, [edi + 0x54]
push 0xff
push eax
call fcn.006287f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, 0xff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0xf8], eax
lea edi, [eax + 0x100]
add eax, 0x340
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], eax
test dl, 0x10
je 0x478e6d
movzx eax, word [ecx + 0x58]
movzx ecx, ax
mov dword [esp + 0x48], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
test dl, 0x20
je 0x478e86
cmp ax, bx
ja 0x478e20
movzx eax, ax
movzx eax, byte [eax + edi]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x1c]
cmp ecx, 0x7f
jbe 0x478e8a
cmp dword [esp + 0x10], 0
jne 0x478e34
test ebx, ebx
je 0x478e8a
movzx ecx, cx
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x7d95e0]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x7c76e0]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x7c4804]
add ax, word [esp + 0x40]
movzx eax, ax
mov dword [esp + 0x34], eax
jmp 0x478e8a
cmp dword [esp + 0x60], 0
mov ebx, dword [esp + 0x1c]
jne 0x478e8e
test dl, 0x40
je 0x478e8e
add ecx, 0x14
mov dword [esp + 0x44], ecx
jmp 0x478e8a
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test dl, dl
jns 0x478f14
movzx eax, word [ecx + 0x5c]
movzx ecx, ax
mov dword [esp + 0x64], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ecx
test edx, 0x100
je 0x478f14
mov edx, 0xff
cmp ax, dx
ja 0x478eca
movzx eax, ax
movzx eax, byte [eax + edi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
cmp ecx, 0x7f
jbe 0x478f18
test eax, eax
jne 0x478edb
test ebx, ebx
je 0x478f18
movzx ecx, cx
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x7d95e0]
shl eax, 7
add eax, ecx
mov ecx, dword [esp + 0x54]
movzx eax, word [eax*2 + 0x7c76e0]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x7c4804]
add ax, cx
movzx eax, ax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xec], ebx
mov ebx, dword [esp + 0x14]
test dword [ebx + 0x40], 0x10000
mov ebx, dword [esp + 0x15c]
jne 0x479501
cmp dword [esp + 0x70], 0
je 0x4790a2
mov edi, esi
test eax, eax
je 0x479016
cmp esi, edx
jae 0x47909c
mov ecx, dword [esp + 0x158]
nop
test ecx, ecx
je 0x478fad
mov eax, dword [esp + 0x124]
cmp edi, eax
jae 0x478fec
push dword [esp + 0x10]
lea edx, [esp + 0x160]
push edx
mov edx, ecx
mov ecx, edi
push eax
call fcn.00483db0
mov ebx, dword [esp + 0x168]
add esp, 0xc
test eax, eax
jne 0x47909c
mov edx, dword [esp + 0xc]
jmp 0x478fe5
mov ecx, dword [esp + 0x124]
lea eax, [ebx + ebx]
sub ecx, eax
cmp edi, ecx
ja 0x478fe5
mov ax, word [edi]
cmp ax, word [esp + 0x160]
jne 0x478fe5
cmp ebx, 1
je 0x47909c
mov ax, word [edi + 2]
cmp ax, word [esp + 0x162]
je 0x47909c
mov ecx, dword [esp + 0x158]
add edi, 2
cmp edi, edx
jae 0x47909c
mov ax, word [edi]
and ax, word [esp + 0x50]
cmp ax, word [esp + 0x3c]
jne 0x479009
add edi, 2
cmp edi, edx
jb 0x478f70
jmp 0x47909c
cmp esi, edx
jae 0x47909c
mov ecx, dword [esp + 0x158]
test ecx, ecx
je 0x47905e
mov eax, dword [esp + 0x124]
cmp edi, eax
jae 0x479095
push dword [esp + 0x10]
lea edx, [esp + 0x160]
push edx
mov edx, ecx
mov ecx, edi
push eax
call fcn.00483db0
mov ebx, dword [esp + 0x168]
add esp, 0xc
test eax, eax
jne 0x47909c
mov edx, dword [esp + 0xc]
jmp 0x47908e
mov ecx, dword [esp + 0x124]
lea eax, [ebx + ebx]
sub ecx, eax
cmp edi, ecx
ja 0x47908e
mov ax, word [edi]
cmp ax, word [esp + 0x160]
jne 0x47908e
cmp ebx, 1
je 0x47909c
mov ax, word [edi + 2]
cmp ax, word [esp + 0x162]
je 0x47909c
mov ecx, dword [esp + 0x158]
add edi, 2
cmp edi, edx
jb 0x479025
mov edx, edi
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4791c8
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
test ecx, ecx
jne 0x4790c2
test ebx, ebx
je 0x479437
cmp esi, edx
sbb eax, eax
neg eax
cmp esi, edx
jae 0x479115
movzx eax, word [esi]
test ecx, ecx
je 0x4790e9
cmp ax, word [esp + 0x40]
je 0x479437
cmp ax, word [esp + 0x34]
je 0x479437
test ebx, ebx
je case.0x4795cd.997
mov ecx, 0xff
cmp ax, cx
cmova eax, ecx
movzx edx, ax
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
mov eax, 0
setne al
test eax, eax
jne 0x479437
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp dword [esp + 0x10], 0
je 0x479168
mov edx, dword [esp + 0xc]
cmp edx, ecx
je 0x479168
test ebx, ebx
je 0x47913b
cmp ebx, 0xfffffffe
jne 0x479168
mov ebx, dword [esp + 0x58]
mov edi, 0xdc00
lea esi, [edx + 2]
cmp esi, ecx
jae 0x479166
mov edx, 0xfc00
mov ax, word [esi]
and ax, dx
cmp ax, di
jne 0x47976b
add esi, 2
cmp esi, ecx
jb 0x479150
xor ebx, ebx
mov eax, dword [esp + 0xd0]
cmp eax, dword [esp + 0xd8]
je 0x47918a
push dword [esp + 0xc8]
push eax
call dword [esp + 0xcc]
add esp, 8
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x134]
mov dword [edi + 0x14], eax
mov byte [edi + 0x24], 0
cmp ebx, 1
jne 0x479893
movzx eax, word [edi + 0x26]
mov ecx, dword [esp + 0x108]
add eax, eax
cmp ecx, eax
jl 0x4797e4
xor eax, eax
jmp 0x4797ec
cmp dword [esp + 0x48], 0
je 0x47922f
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
cmp cx, bx
je 0x4791f6
cmp esi, edx
jae 0x47920c
movzx eax, word [esi]
cmp ax, cx
je 0x47920c
cmp ax, bx
je 0x47920c
add esi, 2
cmp esi, edx
jb 0x4791e0
jmp 0x47920c
cmp esi, edx
jae 0x47920c
nop word [eax + eax]
cmp word [esi], cx
je 0x47920c
add esi, 2
cmp esi, edx
jb 0x479200
cmp word [esp + 0x10c], 0
mov edx, dword [esp + 0x124]
jne 0x47943e
cmp esi, edx
jae case.0x4795cd.997
jmp 0x47943e
cmp dword [esp + 0x60], 0
je 0x4793f0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x11c]
add eax, edx
cmp esi, eax
jbe 0x479437
mov edi, dword [esp + 0x10]
test edi, edi
je 0x479314
cmp esi, dword [esp + 0xc]
jae 0x4793ae
mov eax, dword [esp + 0x158]
test eax, eax
je 0x4792a6
cmp esi, edx
jbe 0x4792e0
push edi
lea ecx, [esp + 0x160]
push ecx
push edx
mov edx, eax
mov ecx, esi
call fcn.00483e50
add esp, 0xc
test eax, eax
jne 0x4793ae
mov ebx, dword [esp + 0x15c]
mov edx, dword [esp + 0x11c]
jmp 0x4792e0
lea edi, [ebx + ebx]
lea eax, [edi + edx]
cmp esi, eax
jb 0x4792dc
mov ecx, esi
sub ecx, edi
mov ax, word [ecx]
cmp ax, word [esp + 0x160]
jne 0x4792dc
cmp ebx, 1
je 0x4793ae
mov ax, word [ecx + 2]
cmp ax, word [esp + 0x162]
je 0x4793ae
mov edi, dword [esp + 0x10]
add esi, 2
cmp esi, dword [esp + 0xc]
jae 0x4793ae
mov ax, word [esi]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x479305
add esi, 2
cmp esi, dword [esp + 0xc]
jb 0x479265
jmp 0x4793ae
cmp esi, dword [esp + 0xc]
jae 0x4793ae
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0xc]
nop dword [eax]
test eax, eax
je 0x479366
cmp esi, edx
jbe 0x4793a7
push edi
lea ecx, [esp + 0x160]
push ecx
push edx
mov edx, eax
mov ecx, esi
call fcn.00483e50
add esp, 0xc
test eax, eax
jne 0x4793ae
mov ebx, dword [esp + 0x15c]
mov edx, dword [esp + 0x11c]
jmp 0x47939c
lea edi, [ebx + ebx]
lea eax, [edi + edx]
cmp esi, eax
jb 0x4793ea
mov ecx, esi
sub ecx, edi
mov ax, word [ecx]
cmp ax, word [esp + 0x160]
jne 0x479398
cmp ebx, 1
je 0x4793ae
mov ax, word [ecx + 2]
cmp ax, word [esp + 0x162]
je 0x4793ae
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x158]
add esi, 2
cmp esi, ecx
jb 0x479330
cmp word [esi - 2], 0xd
jne 0x479433
mov eax, dword [esp + 0x158]
cmp eax, 1
je 0x4793ce
cmp eax, 2
jne 0x479433
mov edi, dword [esp + 0x24]
cmp esi, dword [esp + 0xc]
jae 0x479437
cmp word [esi], 0xa
mov edx, dword [esp + 0x124]
jne 0x47943e
add esi, 2
jmp 0x47943e
mov edi, dword [esp + 0x10]
jmp 0x4793a0
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x479437
cmp esi, edx
jae 0x47920c
mov edi, 0xff
movzx edx, word [esi]
mov eax, 1
cmp edx, edi
cmova edx, edi
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x47942a
add esi, 2
cmp esi, dword [esp + 0xc]
jb 0x479405
mov edi, dword [esp + 0x24]
jmp 0x47920c
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x124]
cmp word [esp + 0x10c], 0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
jne 0x4795fd
movzx eax, word [ebx + 0x66]
sub edx, esi
sar edx, 1
cmp edx, eax
jl case.0x4795cd.997
cmp dword [esp + 0x64], 0
mov eax, dword [esp + 0x48]
lea ecx, [esi + eax*2]
je 0x4795fd
cmp ecx, dword [esp + 0x68]
jbe 0x4795fd
cmp edx, 0x7d0
jb 0x47949d
test edi, edi
jne 0x4795fd
cmp edx, 0x1e8480
jae 0x4795fd
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
cmp bx, ax
je 0x4795d4
cmp ecx, dword [esp + 0x124]
jae case.0x4795cd.997
movzx ebx, bx
nop
movzx edx, word [ecx]
mov edi, ecx
add ecx, 2
cmp edx, ebx
je 0x4794e6
movzx eax, ax
cmp edx, eax
je 0x4794e6
cmp ecx, dword [esp + 0x124]
jae case.0x4795cd.997
mov eax, dword [esp + 0x38]
jmp 0x4794c0
mov edx, dword [esp + 0x124]
cmp edi, edx
jae case.0x4795cd.997
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp esi, ecx
ja 0x479121
mov ecx, dword [esp + 0x30]
mov eax, esi
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x118]
or dword [esp + 0xbc], 1
sar eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x4c]
or eax, dword [ebp + 0x10]
mov dword [esp + 0x148], eax
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x70]
movzx eax, word [ebx + 0x68]
push eax
movzx eax, word [ecx + 0x26]
push eax
lea eax, [ecx + 0x2c]
mov dword [esp + 0x13c], esi
push eax
mov ecx, esi
mov dword [esp + 0x144], esi
mov dword [esp + 0xfc], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x164], 0
call fcn.0046f180
add esp, 0x14
mov dword [esp + 0x28], eax
cmp dword [esp + 0xec], 0
je 0x4795b1
test edi, edi
jne 0x4795b1
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], esi
test eax, eax
jg case.default.0x4795cd
je case.0x4795cd.996
add eax, 0x3e5
cmp eax, 4
ja case.default.0x4795cd
jmp dword [eax*4 + 0x47997c]
mov edx, dword [esp + 0x124]
cmp ecx, edx
jae case.0x4795cd.997
movzx eax, word [ecx]
mov edi, ecx
add ecx, 2
cmp ax, bx
je 0x4794ed
cmp ecx, edx
jb 0x4795e3
jmp case.0x4795cd.997
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x479505
mov eax, dword [esp + 0x150]
mov edi, esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x154], eax
jmp 0x479665
mov edi, dword [esp + 0x140]
cmp edi, esi
jbe case.0x4795cd.996
mov edx, dword [esp + 0x10]
jmp 0x479665
mov edx, dword [esp + 0x10]
lea edi, [esi + 2]
mov dword [esp + 0x154], 0
test edx, edx
je 0x479665
cmp edi, dword [esp + 0xc]
jae 0x479665
mov ax, word [edi]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x479665
add edi, 2
mov ecx, dword [esp + 0x158]
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x70], ebx
je 0x4796b0
mov eax, dword [esp + 0x124]
test ecx, ecx
je 0x479722
cmp esi, eax
jae 0x4796b0
push edx
lea edx, [esp + 0x160]
push edx
mov edx, ecx
mov ecx, esi
push eax
call fcn.00483db0
add esp, 0xc
test eax, eax
jne 0x479762
mov ecx, dword [esp + 0x158]
mov ebx, dword [esp + 0x15c]
cmp dword [esp + 0x24], 0
mov esi, edi
jne case.default.0x4795cd
mov edx, dword [esp + 0xc]
cmp edi, edx
ja case.default.0x4795cd
cmp edi, dword [esp + 0x7c]
jbe 0x479706
cmp word [edi - 2], 0xd
jne 0x479706
cmp edi, edx
jae 0x479706
cmp word [edi], 0xa
jne 0x479706
mov eax, dword [esp + 0x14]
test dword [eax + 0x48], 0x800
jne 0x479706
cmp ecx, 1
je 0x479703
cmp ecx, 2
je 0x479703
cmp ebx, 2
jne 0x479706
lea esi, [edi + 2]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x134], 0
jmp 0x478f33
mov ebx, dword [esp + 0x15c]
lea ecx, [ebx + ebx]
sub eax, ecx
cmp esi, eax
ja 0x479752
mov ax, word [esi]
cmp ax, word [esp + 0x160]
jne 0x479752
cmp ebx, 1
je case.default.0x4795cd
mov ax, word [esi + 2]
cmp ax, word [esp + 0x162]
je case.default.0x4795cd
mov ecx, dword [esp + 0x158]
jmp 0x4796b7
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
jmp 0x479123
mov edx, dword [esp + 0x2c]
mov eax, esi
sub eax, dword [esp + 0x20]
mov ecx, esi
sar eax, 1
push ebx
sub edx, eax
mov dword [esp + 0x124], esi
call fcn.00483f90
mov ecx, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4797c6
mov edx, dword [esp + 0xc]
jns 0x479144
mov eax, dword [ebx]
lea edx, [esi + eax*2]
mov dword [esp + 0xc], edx
mov dword [esp + 0x124], edx
cmp edx, esi
jbe 0x479144
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], 3
jmp 0x478f1c
mov eax, dword [esp + 0x10]
mov edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x4c], 1
jmp 0x478f20
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
inc eax
mov ebx, dword [esp + 0x20]
sub esi, ebx
mov ecx, dword [esp + 0x128]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x12c]
sub eax, ebx
sar esi, 1
sar eax, 1
cmp dword [esp + 0x130], ecx
mov dword [edi + 0x20], esi
cmova ecx, dword [esp + 0x130]
sub ecx, ebx
mov dword [edi + 0x18], eax
sar ecx, 1
test dword [ebp + 0x10], 0x4000
mov dword [edi + 0x1c], ecx
je 0x479878
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x2c]
push dword [edi + 8]
mov eax, dword [edi]
lea esi, [esi + ecx]
add esi, esi
push esi
call eax
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
je 0x4788bf
push esi
push ebx
push eax
call fcn.00628270
mov eax, dword [edi + 0x28]
add esp, 0xc
or byte [edi + 0x25], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x138]
mov dword [edi + 0x14], eax
test ebx, ebx
je 0x4798c0
cmp ebx, 0xfffffffe
je 0x4798c0
mov dword [edi + 0x28], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x479911
mov ecx, dword [esp + 0x20]
sub ebx, ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
sub edx, ecx
sar ebx, 1
mov dword [edi + 0x10], ecx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], eax
sar edx, 1
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], 0xfffffffe
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], ebx
mov dword [edi + 0x18], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x28], 0xffffffff
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffd4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5170]
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x517c]
mov eax, 0xffffffcd
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00623060
mov esp, ebp
pop ebp
ret