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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x121c
call fcn.00845a88
sub esp, 0x121c
mov ebx, dword [esp + 0x123c]
mov edi, dword [esp + 0x1238]
mov esi, dword [esp + 0x1230]
mov dword [esp + 0x48], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], esi
test ebx, ebx
je 0x8472dc
mov ecx, dword [esp + 0x1240]
mov dword [ebx], 0
test edi, edi
je 0x84726c
mov dword [edi], 0
test ecx, ecx
je 0x8472ef
mov eax, dword [esp + 0x1244]
mov ebp, dword [esp + 0x1234]
mov dword [ecx], 0
test eax, eax
mov ecx, 0x8a4f84
je 0x84728f
mov ecx, eax
mov dword [esp + 0x5c], ecx
lea eax, [ecx + 0x100]
mov dword [esp + 0x60], eax
lea eax, [ecx + 0x200]
mov dword [esp + 0x64], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0x68], eax
test ebp, 0xd8008580
je 0x847301
mov dword [esp + 0x10], 0x11
mov eax, 0x11
mov ecx, dword [esp + 0x20]
sub ecx, esi
sar ecx, 1
mov edx, dword [esp + 0x1240]
mov dword [edx], ecx
jmp 0x847730
test edi, edi
je 0x847764
mov dword [edi], 0x63
jmp 0x847764
mov dword [esp + 0x10], 0x10
mov eax, 0x10
jmp 0x847730
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc0], 0
movzx eax, word [esi]
cmp eax, 0x28
jne 0x8476a9
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x24], 0
mov eax, esi
mov dword [esp + 0x18], 0xffffffff
xor edi, edi
mov ebx, edi
movzx ecx, word [esi + ebx*2 + 2]
cmp ecx, 0x2a
jne 0x8476bd
add eax, 4
sub esp, 4
push 6
push 0x891138
push eax
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x847549
lea edi, [esi + ebx*2 + 4]
sub esp, 4
push 4
push str.UTF_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84754e
sub esp, 4
push 4
push str.UCP_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84755e
sub esp, 4
push 0x10
push str.NO_AUTO_POSSESS_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84756e
sub esp, 4
push 0xd
push str.NO_START_OPT_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84757e
sub esp, 4
push 0xc
push str.LIMIT_MATCH
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84758e
sub esp, 4
push 0x10
push str.LIMIT_RECURSION
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x8475ac
sub esp, 4
push 3
push 0x891186
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x8474d0
sub esp, 4
push 3
push 0x89118a
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x8474df
sub esp, 4
push 5
push str.CRLF_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x8474ee
sub esp, 4
push 4
push str.ANY_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x8474fd
sub esp, 4
push 8
push str.ANYCRLF_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84750c
sub esp, 4
push 0xc
push str.BSR_ANYCRLF_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
je 0x84751b
sub esp, 4
push 0xc
push str.BSR_UNICODE_
push edi
call fcn.00861180
add esp, 0x10
test eax, eax
jne 0x8476bd
add ebx, 0xe
mov eax, 0x1000000
jmp 0x847523
add ebx, 5
mov eax, 0x100000
mov ecx, 0xff8fffff
jmp 0x847530
add ebx, 5
mov eax, 0x200000
mov ecx, 0xff8fffff
jmp 0x847530
add ebx, 7
mov eax, 0x300000
mov ecx, 0xff8fffff
jmp 0x847530
add ebx, 6
mov eax, 0x400000
mov ecx, 0xff8fffff
jmp 0x847530
add ebx, 0xa
mov eax, 0x500000
mov ecx, 0xff8fffff
jmp 0x847530
add ebx, 0xe
mov eax, 0x800000
mov ecx, 0xfe7fffff
nop
nop
nop
nop
nop
nop
nop
nop
and ebp, ecx
or ebp, eax
lea eax, [esi + ebx*2]
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x28
je 0x84733a
jmp 0x8476bd
add ebx, 8
jmp 0x847551
add ebx, 6
or ebp, 0x800
mov edi, ebx
jmp 0x847690
add ebx, 6
or ebp, 0x20000000
mov edi, ebx
jmp 0x847690
add ebx, 0x12
or ebp, 0x20000
mov edi, ebx
jmp 0x847690
add ebx, 0xf
or ebp, 0x4000000
mov edi, ebx
jmp 0x847690
lea edi, [ebx + 0xe]
movzx ecx, word [esi + ebx*2 + 0x1c]
movzx edx, cx
lea esi, [edx - 0x30]
xor eax, eax
cmp esi, 9
jbe 0x8475cd
mov esi, dword [esp + 0x1230]
jmp 0x847606
lea edi, [ebx + 0x12]
movzx ecx, word [esi + ebx*2 + 0x24]
movzx edx, cx
lea esi, [edx - 0x30]
xor eax, eax
cmp esi, 9
jbe 0x847634
mov esi, dword [esp + 0x1230]
jmp 0x847666
xor eax, eax
mov esi, dword [esp + 0x1230]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x30]
movzx ecx, word [esi + edi*2 + 2]
inc edi
cmp eax, 0x19999998
ja 0x847606
movzx edx, cx
lea esi, [edx - 0x30]
cmp esi, 0xa
mov esi, dword [esp + 0x1230]
jb 0x8475e0
movzx ecx, cx
cmp ecx, 0x29
jne 0x8476bd
inc edi
cmp eax, dword [esp + 0xc]
jae 0x847690
mov ecx, dword [esp + 0x24]
or ecx, 0x2000
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc], eax
jmp 0x847690
xor eax, eax
mov esi, dword [esp + 0x1230]
nop
nop
nop
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x30]
movzx ecx, word [esi + edi*2 + 2]
inc edi
cmp eax, 0x19999998
ja 0x847666
movzx edx, cx
lea esi, [edx - 0x30]
cmp esi, 0xa
mov esi, dword [esp + 0x1230]
jb 0x847640
movzx ecx, cx
cmp ecx, 0x29
jne 0x8476bd
inc edi
cmp eax, dword [esp + 0x18]
jae 0x847690
mov ecx, dword [esp + 0x24]
or ecx, 0x4000
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x18], eax
nop
nop
mov ebx, dword [esp + 0x123c]
lea eax, [esi + edi*2]
movzx ecx, word [esi + edi*2]
cmp ecx, 0x28
je 0x847338
jmp 0x8476c6
xor edi, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
jmp 0x8476c6
mov edi, ebx
mov ebx, dword [esp + 0x123c]
mov eax, ebp
and eax, 0x800
test dword [esp + 0x1234], 0x10000
je 0x8476ed
test eax, eax
je 0x8476ed
mov dword [esp + 0x10], 0x4e
mov eax, 0x4e
jmp 0x847729
mov dword [esp + 0x34], eax
mov eax, ebp
and eax, 0x2800
cmp eax, 0x800
jne 0x847771
sub esp, 4
push dword [esp + 0x1244]
push 0xffffffffffffffff
push esi
call fcn.008611f0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x847771
mov dword [esp + 0x10], 0x4a
mov eax, 0x4a
mov edi, dword [esp + 0x1238]
mov ecx, 0x8919ec
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [ecx], 0
lea ecx, [ecx + 1]
jne 0x847740
cmp byte [ecx], 0
je 0x847757
cmp edx, 2
lea edx, [edx - 1]
jge 0x847740
jmp 0x84775c
mov ecx, 0x892717
test edi, edi
mov dword [ebx], ecx
je 0x847764
mov dword [edi], eax
xor eax, eax
add esp, 0x121c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebp
and eax, 0x1800000
cmp eax, 0x1800000
jne 0x847798
mov dword [esp + 0x10], 0x38
mov eax, 0x38
mov edi, dword [esp + 0x1238]
jmp 0x8472c6
mov eax, ebp
shr eax, 0x14
mov ecx, eax
and cl, 7
cmp cl, 5
ja case.default.0x8477ae
mov cx, 0xa
and eax, 7
jmp dword [eax*4 + 0x84848c]
mov cx, 0xd
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 1
mov word [esp + 0xe8], cx
jmp 0x847814
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 2
mov dword [esp + 0xe8], 0xa000d
jmp 0x847814
mov dword [esp + 0xe0], 1
jmp 0x847814
mov dword [esp + 0xe0], 2
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xb0], 0
lea eax, [esp + 0x21c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x98], 0x800
lea eax, [esp + 0x12c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], 0x14
mov esi, dword [esp + 0x1230]
mov dword [esp + 0x74], esi
sub esp, 0xc
push esi
call fcn.008611d0
add esp, 0x10
lea eax, [esi + eax*2]
mov dword [esp + 0x78], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xa4], 0
mov ecx, ebp
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x80], 0
lea ebp, [esi + edi*2]
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x21c]
mov dword [esp + 0x30], eax
mov word [esp + 0x21c], 0x83
sub esp, 0xc
lea edi, [esp + 0x54]
lea eax, [esp + 0x68]
lea edx, [esp + 0x3c]
mov dword [esp + 0x38], ecx
push edi
push eax
push 0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00848740
add esp, 0x40
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [esp + 0x1238]
je 0x8479b5
mov ecx, dword [esp + 0x20]
sub ecx, esi
sar ecx, 1
mov edx, dword [esp + 0x1240]
mov dword [edx], ecx
test eax, eax
jg 0x847730
mov ecx, 0x8919ec
jmp 0x84775c
mov dword [esp + 0xf0], ebp
lea ebp, [esp + 0x5c]
mov eax, dword [esp + 0x48]
cmp eax, 0x10001
jl 0x8479e4
mov dword [esp + 0x10], 0x14
mov eax, 0x14
mov esi, dword [esp + 0x1230]
jmp 0x8472c6
mov ecx, dword [esp + 0x90]
imul ecx, dword [esp + 0x8c]
add ecx, eax
lea esi, [ecx + ecx + 0x38]
sub esp, 0xc
push esi
call dword [0x891040]
add esp, 0x10
test eax, eax
je 0x847e3e
mov edx, eax
lea eax, [esp + 0xc4]
mov dword [edx], 0x50435245
mov dword [edx + 4], esi
mov ecx, dword [esp + 0xbc]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xc0]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], 0
mov word [edx + 0x22], 0x1c
mov ecx, dword [esp + 0x90]
movzx ecx, cx
mov word [edx + 0x24], cx
mov ebx, dword [esp + 0x8c]
mov word [edx + 0x26], bx
mov dword [esp + 0x14], edx
mov dword [edx + 0x28], 0
xor edx, edx
mov esi, dword [esp + 0x28]
cmp esi, 0x8a4f84
je 0x847a83
mov edx, esi
mov edi, dword [esp + 0x14]
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], 0
mov dword [edi + 0x2c], 0
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xa0], esi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 0
lea esi, [edi + 0x38]
mov dword [esp + 0xc], esi
mov dword [esp + 0x88], esi
movzx esi, bx
imul esi, ecx
lea ecx, [edi + esi*2 + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0xdc], 0
mov dword [esp + 0x80], 0
mov ecx, ebx
test ebx, ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
lea edi, [esp + 0x20]
lea ebx, [esp + 0x10]
jle 0x847d29
mov edx, dword [esp + 0x84]
mov dword [esp + 0x8c], 0
xor ebp, ebp
mov eax, ecx
mov ecx, dword [esp + 0xc]
jmp 0x847b6b
mov edx, dword [esp + 0xf8]
add edx, 0xc
dec eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x100], eax
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
mov esi, dword [edx + 8]
mov dword [esp + 0xfc], esi
mov dword [esp + 0x50], eax
lea eax, [eax + eax]
mov dword [esp + 0x24], eax
test ebp, ebp
mov dword [esp + 0xf8], edx
jle 0x847cad
mov esi, dword [esp + 0x90]
lea eax, [esi + esi]
mov dword [esp + 0x104], eax
mov eax, ebp
imul eax, esi
mov edx, eax
mov dword [esp + 0xf4], edx
mov edx, esi
neg eax
lea ebx, [ebp + ebp]
imul ebx, edx
lea edi, [ebp + ebp + 2]
imul edi, edx
dec edi
mov dword [esp + 0x54], 0
xor esi, esi
mov dword [esp + 0x108], ebp
mov dword [esp + 0x58], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x18], eax
lea eax, [ecx + 2]
sub esp, 4
push dword [esp + 0x28]
push eax
push dword [esp + 0x34]
mov ebp, ecx
call sub.msvcrt.dll_memcmp
add esp, 0x10
test eax, eax
je 0x847c23
mov edx, dword [esp + 0x58]
lea eax, [ebp + edx*2]
mov dword [esp + 0xc], eax
mov ecx, ebp
jns 0x847c3d
jmp 0x847c64
mov eax, dword [esp + 0x50]
cmp word [ebp + eax*2 + 2], 0
mov edx, dword [esp + 0x58]
lea eax, [ebp + edx*2]
mov dword [esp + 0xc], eax
mov ecx, ebp
jne 0x847c64
inc esi
mov ecx, dword [esp + 0x104]
sub dword [esp + 0x54], ecx
mov eax, dword [esp + 0x18]
add eax, edx
sub ebx, ecx
sub edi, ecx
mov ebp, dword [esp + 0x108]
cmp ebp, esi
mov ecx, dword [esp + 0xc]
jg 0x847bf0
jmp 0x847cb1
mov edx, dword [esp + 0xc]
cmp edx, ecx
mov eax, dword [esp + 0x18]
mov ebp, edx
jbe 0x847c84
test eax, eax
je 0x847cad
movzx eax, byte [ecx + ebx - 1]
mov byte [ecx + edi], al
dec edi
dec ebx
jne 0x847c76
jmp 0x847cad
test eax, eax
je 0x847cad
mov eax, dword [esp + 0xf4]
mov edx, dword [esp + 0x54]
lea eax, [edx + eax*2]
mov esi, ecx
xor ecx, ecx
movzx edx, byte [esi + ecx]
mov byte [ebp + ecx], dl
inc ecx
cmp eax, ecx
jne 0x847c9a
mov dword [esp + 0xc], esi
jmp 0x847cb1
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xfc]
mov esi, dword [esp + 0xc]
mov word [esi], ax
lea eax, [esi + 2]
sub esp, 4
push dword [esp + 0x28]
push dword [esp + 0x30]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, dword [esp + 0x50]
mov word [esi + eax*2 + 2], 0
mov ebp, dword [esp + 0x8c]
inc ebp
mov dword [esp + 0x8c], ebp
mov eax, dword [esp + 0x100]
cmp eax, 2
jge 0x847b59
cmp dword [esp + 0x94], 0x15
lea ebp, [esp + 0x5c]
lea edi, [esp + 0x20]
lea ebx, [esp + 0x10]
jl 0x847d29
sub esp, 0xc
push dword [esp + 0x90]
call dword [0x891044]
add esp, 0x10
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov word [eax], 0x83
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 8]
sub esp, 0xc
lea edx, [esp + 0x3c]
push 0
push ebp
push 0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0
push 0
push ebx
push edi
call fcn.00848740
add esp, 0x40
movzx eax, word [esp + 0x9c]
mov word [esi + 0x1e], ax
movzx eax, word [esp + 0xa8]
mov word [esi + 0x20], ax
movzx eax, word [esp + 0xa4]
mov word [esi + 0x1c], ax
mov eax, dword [esp + 0xc0]
or eax, 2
mov dword [esi + 0xc], eax
cmp dword [esp + 0xc8], 0
je 0x847dc5
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
jne 0x847dea
mov eax, dword [esp + 0x20]
cmp word [eax], 0
mov eax, dword [esp + 0x34]
je 0x847dea
mov dword [esp + 0x10], 0x16
shr eax, 0xb
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + 2]
mov dword [esp + 0x30], ecx
mov word [eax], 0
mov dword [esp + 0x28], ecx
mov eax, ecx
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, dword [esp + 0x48]
jle 0x847e57
mov dword [esp + 0x10], 0x17
mov ebx, 0x17
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x98], 0x801
jge 0x847f2a
jmp 0x847f42
mov dword [esp + 0x10], 0x15
mov eax, 0x15
mov esi, dword [esp + 0x1230]
jmp 0x8472c6
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
cmp esi, eax
jbe 0x847f1d
test ebx, ebx
jne 0x847f1d
add esi, 0xfffffffe
xor eax, eax
mov ecx, 0xffffffff
mov dword [esp + 0x7c], esi
movzx ebx, word [esi]
test ebx, ebx
mov edi, dword [esp + 0x1c]
je 0x847ef4
movzx edx, word [edi + ebx*2 - 2]
cmp edx, 0x75
mov edx, dword [esp + 0x2c]
jne 0x847ef4
movzx ebp, word [edi + ebx*2]
cmp ecx, ebp
je 0x847ec0
sub esp, 4
push ebp
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.00846ec0
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ecx, ebp
test eax, eax
lea ebp, [esp + 0x5c]
je 0x847f10
mov edx, eax
mov edi, dword [esp + 0x1c]
sub edx, edi
shr edx, 1
mov word [edi + ebx*2], dx
mov edx, dword [esp + 0x2c]
cmp esi, dword [esp + 0x18]
lea esi, [esi - 2]
ja 0x847e81
xor ebx, ebx
cmp dword [esp + 0x98], 0x801
jge 0x847f2a
jmp 0x847f42
mov dword [esp + 0x10], 0xa
mov ebx, 0xa
cmp dword [esp + 0x98], 0x801
jge 0x847f2a
jmp 0x847f42
mov dword [esp + 0x10], 0x35
mov ebx, 0x35
cmp dword [esp + 0x98], 0x801
jl 0x847f42
sub esp, 0xc
push dword [esp + 0x24]
call dword [0x891044]
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x6c], 0
test ebx, ebx
jne 0x847f6f
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
cmp ax, word [ecx + 0x1e]
jbe 0x847f6f
mov dword [esp + 0x10], 0xf
mov ebx, 0xf
and edx, 0x20000
or edx, ebx
mov edi, dword [esp + 0x1238]
jne 0x8481a5
mov esi, dword [esp + 0x1c]
movzx ebp, word [esi]
cmp ebp, 0xa1
ja case.0x84813a.0
lea ebx, [esp + 0x10c]
lea eax, [ebp - 0x21]
movzx eax, ax
cmp eax, 0x40
ja 0x84806d
movzx ecx, bp
mov ax, 0x55
cmp ecx, 0x54
ja 0x847fd8
mov ax, 0x48
cmp ecx, 0x47
ja 0x847fd8
mov ax, 0x3b
cmp ecx, 0x3a
ja 0x847fd8
cmp ecx, 0x2d
mov ax, 0x2e
ja 0x847fd8
mov ax, 0x21
add ebp, 0x21
sub ebp, eax
movzx eax, bp
xor ecx, ecx
cmp eax, 0x28
ja 0x847fff
sub esp, 8
mov ecx, esi
mov edx, dword [esp + 0x14]
push ebx
push dword [esp + 0x6c]
call fcn.00851730
add esp, 0x10
mov ecx, eax
lea eax, [ebp - 0x21]
movzx edi, ax
xor edx, edx
cmp edi, 6
ja 0x848014
cwde
mov edx, dword [eax*4 + 0x892740]
mov dword [esp + 0x110], edx
mov dword [esp + 0x4c], 0x3e8
test ecx, ecx
je case.default.0x848101
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x4c]
push eax
push ecx
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.00851c90
add esp, 0x10
test eax, eax
je case.default.0x848101
add ebp, 0xffffffdf
movzx eax, bp
cmp eax, 7
ja case.default.0x848101
movsx eax, bp
movzx eax, word [eax + eax + 0x89275c]
add word [esi], ax
jmp case.default.0x848101
mov ecx, 0x11
lea eax, [ebp - 0x6e]
movzx eax, ax
cmp eax, 2
jb 0x84808d
movzx eax, bp
cmp eax, 0x70
jne 0x848129
movzx ecx, word [esi + 2]
movzx ebp, word [esi + ecx*2]
lea eax, [ebp - 0x62]
movzx eax, ax
cmp eax, 7
ja case.default.0x848101
sub esp, 8
mov dword [esp + 0x20], ecx
mov ecx, esi
mov edi, ebx
mov ebx, dword [esp + 0x14]
mov edx, ebx
push edi
push dword [esp + 0x6c]
call fcn.00851730
add esp, 0x10
mov ecx, ebp
not ecx
and ecx, 1
mov dword [esp + 0x110], ecx
mov dword [esp + 0x4c], 0x3e8
mov ecx, eax
mov edx, ebx
mov ebx, edi
lea edi, [esp + 0x4c]
push edi
push eax
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.00851c90
mov ecx, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je case.default.0x848101
add ebp, 0xffffff9e
movzx eax, bp
cmp eax, 7
ja case.default.0x848101
jmp dword [eax*4 + 0x8484a4]
mov word [esi + ecx*2], 0x6a
jmp case.default.0x848101
mov word [esi + ecx*2], 0x6b
jmp case.default.0x848101
mov word [esi + ecx*2], 0x6c
jmp case.default.0x848101
mov word [esi + ecx*2], 0x6d
mov bp, word [esi]
movzx eax, bp
mov edi, dword [esp + 0x1238]
cmp eax, 0x9b
ja case.0x84813a.1
jmp dword [eax*4 + 0x8484c4]
movzx ecx, word [esi + 2]
jmp 0x848154
movzx ecx, word [esi + 2]
lea esi, [esi + ecx*2]
jmp case.0x84813a.1
movzx ecx, word [esi + 4]
add ecx, 0xfffffff1
movzx ecx, cx
cmp ecx, 2
jae case.0x84813a.1
add esi, 4
cmp dword [esp + 0xc], 0
movzx ecx, byte [eax + 0x892804]
lea esi, [esi + ecx*2]
je 0x84818e
add eax, 0xffffffe3
cmp eax, 0x37
ja 0x84818e
movzx eax, word [esi - 2]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x84818e
add esi, 2
movzx ebp, word [esi]
cmp ebp, 0xa2
jb 0x847f9e
mov ebx, dword [esp + 0x10]
lea ebp, [esp + 0x5c]
test ebx, ebx
jne 0x84825a
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x84825a
sub esp, 4
push 0xffffffffffffffff
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.00846ec0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x848285
cmp word [esi + 2], 0
jne 0x84823f
movzx edi, word [esi - 2]
mov eax, ebp
movzx ebp, word [esi + edi*2 - 4]
mov word [esi + edi*2 - 4], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
shr edx, 0xb
and edx, 1
sub esp, 4
mov ecx, esi
push 0
push eax
push 1
call fcn.00848c60
add esp, 0x10
mov word [esi + edi*2 - 4], bp
test eax, eax
js 0x848321
cmp eax, dword [esp + 0xa4]
jle 0x848230
mov dword [esp + 0xa4], eax
mov word [esi + 2], ax
mov edi, dword [esp + 0x1238]
lea ebp, [esp + 0x5c]
add esi, 4
sub esp, 4
push 0xffffffffffffffff
push dword [esp + 0x14]
push esi
call fcn.00846ec0
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x8481db
test ebx, ebx
je 0x848285
sub esp, 0xc
push dword [esp + 0x20]
call dword [0x891044]
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x123c]
mov esi, dword [esp + 0x1230]
jmp 0x847992
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
test bl, 0x10
jne 0x8483bf
sub esp, 8
xor edx, edx
mov ecx, dword [esp + 0x24]
push 0
push ebp
call fcn.00849190
add esp, 0x10
test eax, eax
je 0x8482bc
or ebx, 0x10
mov eax, dword [esp + 0x14]
mov dword [eax + 8], ebx
jmp 0x8483bf
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x8482e5
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x28]
push 0
call fcn.00849390
add esp, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
test eax, eax
js 0x848361
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov word [edx + 0x18], cx
test al, 1
je 0x8483b7
movzx eax, cx
cmp dword [esp + 0x34], 0
je 0x84834c
cmp eax, 0x7f
ja 0x848385
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
lea ebp, [esp + 0x5c]
jne 0x8483af
jmp 0x8483b7
cmp eax, 0xfffffffc
mov ecx, 0x46
mov edi, dword [esp + 0x1238]
je 0x848337
mov ecx, 0x19
cmp eax, 0xfffffffe
mov eax, 0x24
je 0x848343
mov eax, ecx
mov dword [esp + 0x10], eax
jmp 0x84825e
cmp eax, 0xff
ja 0x8483b7
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
jne 0x8483af
jmp 0x8483b7
sub esp, 4
xor edx, edx
mov ecx, dword [esp + 0x20]
push 0
push 0
push ebp
call fcn.00849710
add esp, 0x10
test eax, eax
je 0x8483bf
mov eax, dword [esp + 0x14]
or byte [eax + 0xd], 1
jmp 0x8483bf
mov ecx, eax
shr ecx, 7
movzx ecx, byte [ecx + 0x894a84]
shl ecx, 7
and eax, 0x7f
or eax, ecx
movzx eax, word [eax + eax + 0x896c84]
cmp dword [eax*8 + 0x893408], 0
lea ebp, [esp + 0x5c]
je 0x8483b7
mov eax, dword [esp + 0x14]
or byte [eax + 0xc], 0x20
mov eax, dword [esp + 0x14]
or byte [eax + 0xc], 0x10
mov eax, dword [esp + 0x44]
test eax, eax
mov edi, dword [esp + 0x28]
js 0x848445
test al, 2
jne 0x8483db
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
and ecx, 0x10
jne 0x848445
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov word [edx + 0x1a], cx
test al, 1
je 0x84843d
movzx eax, cx
cmp dword [esp + 0x34], 0
je 0x848422
cmp eax, 0x7f
jbe 0x848429
mov ecx, eax
shr ecx, 7
movzx ecx, byte [ecx + 0x894a84]
shl ecx, 7
and eax, 0x7f
or eax, ecx
movzx eax, word [eax + eax + 0x896c84]
cmp dword [eax*8 + 0x893408], 0
jne 0x848435
jmp 0x84843d
cmp eax, 0xff
ja 0x84843d
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
je 0x84843d
mov eax, dword [esp + 0x14]
or byte [eax + 0xc], 0x80
mov eax, dword [esp + 0x14]
or byte [eax + 0xc], 0x40
mov ecx, dword [esp + 0x1c]
sub esp, 4
mov esi, ecx
mov edx, edi
push 0
push ebp
push dword [esp + 0x18]
call fcn.00849950
add esp, 0x10
test eax, eax
jne 0x84847e
movzx eax, word [esi + 2]
movzx ecx, word [esi + eax*2]
lea eax, [esi + eax*2]
cmp ecx, 0x77
mov ecx, eax
mov eax, dword [esp + 0x14]
je 0x848449
jmp 0x847766
mov eax, dword [esp + 0x14]
or byte [eax + 0xd], 0x80
jmp 0x847766