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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x121c
call fcn.0084dc24
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 0x84f47c
mov ecx, dword [esp + 0x1240]
mov dword [ebx], 0
test edi, edi
je 0x84f40c
mov dword [edi], 0
test ecx, ecx
je 0x84f48f
mov eax, dword [esp + 0x1244]
mov ebp, dword [esp + 0x1234]
mov dword [ecx], 0
test eax, eax
mov ecx, 0x8b0d04
je 0x84f42f
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 0x84f4a1
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 0x84f8d0
test edi, edi
je 0x84f904
mov dword [edi], 0x63
jmp 0x84f904
mov dword [esp + 0x10], 0x10
mov eax, 0x10
jmp 0x84f8d0
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc0], 0
movzx eax, word [esi]
cmp eax, 0x28
jne 0x84f849
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 0x84f85d
add eax, 4
sub esp, 4
push 6
push 0x89ceb8
push eax
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f6e9
lea edi, [esi + ebx*2 + 4]
sub esp, 4
push 4
push str.UTF_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f6ee
sub esp, 4
push 4
push str.UCP_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f6fe
sub esp, 4
push 0x10
push str.NO_AUTO_POSSESS_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f70e
sub esp, 4
push 0xd
push str.NO_START_OPT_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f71e
sub esp, 4
push 0xc
push str.LIMIT_MATCH
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f72e
sub esp, 4
push 0x10
push str.LIMIT_RECURSION
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f74c
sub esp, 4
push 3
push 0x89cf06
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f670
sub esp, 4
push 3
push 0x89cf0a
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f67f
sub esp, 4
push 5
push str.CRLF_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f68e
sub esp, 4
push 4
push str.ANY_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f69d
sub esp, 4
push 8
push str.ANYCRLF_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f6ac
sub esp, 4
push 0xc
push str.BSR_ANYCRLF_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
je 0x84f6bb
sub esp, 4
push 0xc
push str.BSR_UNICODE_
push edi
call fcn.00869320
add esp, 0x10
test eax, eax
jne 0x84f85d
add ebx, 0xe
mov eax, 0x1000000
jmp 0x84f6c3
add ebx, 5
mov eax, 0x100000
mov ecx, 0xff8fffff
jmp 0x84f6d0
add ebx, 5
mov eax, 0x200000
mov ecx, 0xff8fffff
jmp 0x84f6d0
add ebx, 7
mov eax, 0x300000
mov ecx, 0xff8fffff
jmp 0x84f6d0
add ebx, 6
mov eax, 0x400000
mov ecx, 0xff8fffff
jmp 0x84f6d0
add ebx, 0xa
mov eax, 0x500000
mov ecx, 0xff8fffff
jmp 0x84f6d0
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 0x84f4da
jmp 0x84f85d
add ebx, 8
jmp 0x84f6f1
add ebx, 6
or ebp, 0x800
mov edi, ebx
jmp 0x84f830
add ebx, 6
or ebp, 0x20000000
mov edi, ebx
jmp 0x84f830
add ebx, 0x12
or ebp, 0x20000
mov edi, ebx
jmp 0x84f830
add ebx, 0xf
or ebp, 0x4000000
mov edi, ebx
jmp 0x84f830
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 0x84f76d
mov esi, dword [esp + 0x1230]
jmp 0x84f7a6
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 0x84f7d4
mov esi, dword [esp + 0x1230]
jmp 0x84f806
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 0x84f7a6
movzx edx, cx
lea esi, [edx - 0x30]
cmp esi, 0xa
mov esi, dword [esp + 0x1230]
jb 0x84f780
movzx ecx, cx
cmp ecx, 0x29
jne 0x84f85d
inc edi
cmp eax, dword [esp + 0xc]
jae 0x84f830
mov ecx, dword [esp + 0x24]
or ecx, 0x2000
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc], eax
jmp 0x84f830
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 0x84f806
movzx edx, cx
lea esi, [edx - 0x30]
cmp esi, 0xa
mov esi, dword [esp + 0x1230]
jb 0x84f7e0
movzx ecx, cx
cmp ecx, 0x29
jne 0x84f85d
inc edi
cmp eax, dword [esp + 0x18]
jae 0x84f830
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 0x84f4d8
jmp 0x84f866
xor edi, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
jmp 0x84f866
mov edi, ebx
mov ebx, dword [esp + 0x123c]
mov eax, ebp
and eax, 0x800
test dword [esp + 0x1234], 0x10000
je 0x84f88d
test eax, eax
je 0x84f88d
mov dword [esp + 0x10], 0x4e
mov eax, 0x4e
jmp 0x84f8c9
mov dword [esp + 0x34], eax
mov eax, ebp
and eax, 0x2800
cmp eax, 0x800
jne 0x84f911
sub esp, 4
push dword [esp + 0x1244]
push 0xffffffffffffffff
push esi
call fcn.00869390
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x84f911
mov dword [esp + 0x10], 0x4a
mov eax, 0x4a
mov edi, dword [esp + 0x1238]
mov ecx, str.no_error
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [ecx], 0
lea ecx, [ecx + 1]
jne 0x84f8e0
cmp byte [ecx], 0
je 0x84f8f7
cmp edx, 2
lea edx, [edx - 1]
jge 0x84f8e0
jmp 0x84f8fc
mov ecx, str.Error_text_not_found__please_report_
test edi, edi
mov dword [ebx], ecx
je 0x84f904
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 0x84f938
mov dword [esp + 0x10], 0x38
mov eax, 0x38
mov edi, dword [esp + 0x1238]
jmp 0x84f466
mov eax, ebp
shr eax, 0x14
mov ecx, eax
and cl, 7
cmp cl, 5
ja case.default.0x84f94e
mov cx, 0xa
and eax, 7
jmp dword [eax*4 + 0x85062c]
mov cx, 0xd
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 1
mov word [esp + 0xe8], cx
jmp 0x84f9b4
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 2
mov dword [esp + 0xe8], 0xa000d
jmp 0x84f9b4
mov dword [esp + 0xe0], 1
jmp 0x84f9b4
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.00869370
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.008508e0
add esp, 0x40
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [esp + 0x1238]
je 0x84fb55
mov ecx, dword [esp + 0x20]
sub ecx, esi
sar ecx, 1
mov edx, dword [esp + 0x1240]
mov dword [edx], ecx
test eax, eax
jg 0x84f8d0
mov ecx, str.no_error
jmp 0x84f8fc
mov dword [esp + 0xf0], ebp
lea ebp, [esp + 0x5c]
mov eax, dword [esp + 0x48]
cmp eax, 0x10001
jl 0x84fb84
mov dword [esp + 0x10], 0x14
mov eax, 0x14
mov esi, dword [esp + 0x1230]
jmp 0x84f466
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 [0x89cdb8]
add esp, 0x10
test eax, eax
je 0x84ffde
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, 0x8b0d04
je 0x84fc23
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 0x84fec9
mov edx, dword [esp + 0x84]
mov dword [esp + 0x8c], 0
xor ebp, ebp
mov eax, ecx
mov ecx, dword [esp + 0xc]
jmp 0x84fd0b
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 0x84fe4d
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 0x84fdc3
mov edx, dword [esp + 0x58]
lea eax, [ebp + edx*2]
mov dword [esp + 0xc], eax
mov ecx, ebp
jns 0x84fddd
jmp 0x84fe04
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 0x84fe04
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 0x84fd90
jmp 0x84fe51
mov edx, dword [esp + 0xc]
cmp edx, ecx
mov eax, dword [esp + 0x18]
mov ebp, edx
jbe 0x84fe24
test eax, eax
je 0x84fe4d
movzx eax, byte [ecx + ebx - 1]
mov byte [ecx + edi], al
dec edi
dec ebx
jne 0x84fe16
jmp 0x84fe4d
test eax, eax
je 0x84fe4d
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 0x84fe3a
mov dword [esp + 0xc], esi
jmp 0x84fe51
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 0x84fcf9
cmp dword [esp + 0x94], 0x15
lea ebp, [esp + 0x5c]
lea edi, [esp + 0x20]
lea ebx, [esp + 0x10]
jl 0x84fec9
sub esp, 0xc
push dword [esp + 0x90]
call dword [0x89cdbc]
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.008508e0
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 0x84ff65
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 0x84ff8a
mov eax, dword [esp + 0x20]
cmp word [eax], 0
mov eax, dword [esp + 0x34]
je 0x84ff8a
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 0x84fff7
mov dword [esp + 0x10], 0x17
mov ebx, 0x17
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x98], 0x801
jge 0x8500ca
jmp 0x8500e2
mov dword [esp + 0x10], 0x15
mov eax, 0x15
mov esi, dword [esp + 0x1230]
jmp 0x84f466
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
cmp esi, eax
jbe 0x8500bd
test ebx, ebx
jne 0x8500bd
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 0x850094
movzx edx, word [edi + ebx*2 - 2]
cmp edx, 0x75
mov edx, dword [esp + 0x2c]
jne 0x850094
movzx ebp, word [edi + ebx*2]
cmp ecx, ebp
je 0x850060
sub esp, 4
push ebp
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.0084f060
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ecx, ebp
test eax, eax
lea ebp, [esp + 0x5c]
je 0x8500b0
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 0x850021
xor ebx, ebx
cmp dword [esp + 0x98], 0x801
jge 0x8500ca
jmp 0x8500e2
mov dword [esp + 0x10], 0xa
mov ebx, 0xa
cmp dword [esp + 0x98], 0x801
jge 0x8500ca
jmp 0x8500e2
mov dword [esp + 0x10], 0x35
mov ebx, 0x35
cmp dword [esp + 0x98], 0x801
jl 0x8500e2
sub esp, 0xc
push dword [esp + 0x24]
call dword [0x89cdbc]
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x6c], 0
test ebx, ebx
jne 0x85010f
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
cmp ax, word [ecx + 0x1e]
jbe 0x85010f
mov dword [esp + 0x10], 0xf
mov ebx, 0xf
and edx, 0x20000
or edx, ebx
mov edi, dword [esp + 0x1238]
jne 0x850345
mov esi, dword [esp + 0x1c]
movzx ebp, word [esi]
cmp ebp, 0xa1
ja case.0x8502da.0
lea ebx, [esp + 0x10c]
lea eax, [ebp - 0x21]
movzx eax, ax
cmp eax, 0x40
ja 0x85020d
movzx ecx, bp
mov ax, 0x55
cmp ecx, 0x54
ja 0x850178
mov ax, 0x48
cmp ecx, 0x47
ja 0x850178
mov ax, 0x3b
cmp ecx, 0x3a
ja 0x850178
cmp ecx, 0x2d
mov ax, 0x2e
ja 0x850178
mov ax, 0x21
add ebp, 0x21
sub ebp, eax
movzx eax, bp
xor ecx, ecx
cmp eax, 0x28
ja 0x85019f
sub esp, 8
mov ecx, esi
mov edx, dword [esp + 0x14]
push ebx
push dword [esp + 0x6c]
call fcn.008598d0
add esp, 0x10
mov ecx, eax
lea eax, [ebp - 0x21]
movzx edi, ax
xor edx, edx
cmp edi, 6
ja 0x8501b4
cwde
mov edx, dword [eax*4 + 0x89e4c0]
mov dword [esp + 0x110], edx
mov dword [esp + 0x4c], 0x3e8
test ecx, ecx
je case.default.0x8502a1
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x4c]
push eax
push ecx
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.00859e30
add esp, 0x10
test eax, eax
je case.default.0x8502a1
add ebp, 0xffffffdf
movzx eax, bp
cmp eax, 7
ja case.default.0x8502a1
movsx eax, bp
movzx eax, word [eax + eax + str._t_b_b_a_a]
add word [esi], ax
jmp case.default.0x8502a1
mov ecx, 0x11
lea eax, [ebp - 0x6e]
movzx eax, ax
cmp eax, 2
jb 0x85022d
movzx eax, bp
cmp eax, 0x70
jne 0x8502c9
movzx ecx, word [esi + 2]
movzx ebp, word [esi + ecx*2]
lea eax, [ebp - 0x62]
movzx eax, ax
cmp eax, 7
ja case.default.0x8502a1
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.008598d0
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.00859e30
mov ecx, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je case.default.0x8502a1
add ebp, 0xffffff9e
movzx eax, bp
cmp eax, 7
ja case.default.0x8502a1
jmp dword [eax*4 + 0x850644]
mov word [esi + ecx*2], 0x6a
jmp case.default.0x8502a1
mov word [esi + ecx*2], 0x6b
jmp case.default.0x8502a1
mov word [esi + ecx*2], 0x6c
jmp case.default.0x8502a1
mov word [esi + ecx*2], 0x6d
mov bp, word [esi]
movzx eax, bp
mov edi, dword [esp + 0x1238]
cmp eax, 0x9b
ja case.0x8502da.1
jmp dword [eax*4 + 0x850664]
movzx ecx, word [esi + 2]
jmp 0x8502f4
movzx ecx, word [esi + 2]
lea esi, [esi + ecx*2]
jmp case.0x8502da.1
movzx ecx, word [esi + 4]
add ecx, 0xfffffff1
movzx ecx, cx
cmp ecx, 2
jae case.0x8502da.1
add esi, 4
cmp dword [esp + 0xc], 0
movzx ecx, byte [eax + 0x89e584]
lea esi, [esi + ecx*2]
je 0x85032e
add eax, 0xffffffe3
cmp eax, 0x37
ja 0x85032e
movzx eax, word [esi - 2]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x85032e
add esi, 2
movzx ebp, word [esi]
cmp ebp, 0xa2
jb 0x85013e
mov ebx, dword [esp + 0x10]
lea ebp, [esp + 0x5c]
test ebx, ebx
jne 0x8503fa
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x8503fa
sub esp, 4
push 0xffffffffffffffff
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.0084f060
add esp, 0x10
mov esi, eax
test esi, esi
je 0x850425
cmp word [esi + 2], 0
jne 0x8503df
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.00850e00
add esp, 0x10
mov word [esi + edi*2 - 4], bp
test eax, eax
js 0x8504c1
cmp eax, dword [esp + 0xa4]
jle 0x8503d0
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.0084f060
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x85037b
test ebx, ebx
je 0x850425
sub esp, 0xc
push dword [esp + 0x20]
call dword [0x89cdbc]
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x123c]
mov esi, dword [esp + 0x1230]
jmp 0x84fb32
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
test bl, 0x10
jne 0x85055f
sub esp, 8
xor edx, edx
mov ecx, dword [esp + 0x24]
push 0
push ebp
call fcn.00851330
add esp, 0x10
test eax, eax
je 0x85045c
or ebx, 0x10
mov eax, dword [esp + 0x14]
mov dword [eax + 8], ebx
jmp 0x85055f
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x850485
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x28]
push 0
call fcn.00851530
add esp, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
test eax, eax
js 0x850501
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov word [edx + 0x18], cx
test al, 1
je 0x850557
movzx eax, cx
cmp dword [esp + 0x34], 0
je 0x8504ec
cmp eax, 0x7f
ja 0x850525
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
lea ebp, [esp + 0x5c]
jne 0x85054f
jmp 0x850557
cmp eax, 0xfffffffc
mov ecx, 0x46
mov edi, dword [esp + 0x1238]
je 0x8504d7
mov ecx, 0x19
cmp eax, 0xfffffffe
mov eax, 0x24
je 0x8504e3
mov eax, ecx
mov dword [esp + 0x10], eax
jmp 0x8503fe
cmp eax, 0xff
ja 0x850557
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
jne 0x85054f
jmp 0x850557
sub esp, 4
xor edx, edx
mov ecx, dword [esp + 0x20]
push 0
push 0
push ebp
call fcn.008518b0
add esp, 0x10
test eax, eax
je 0x85055f
mov eax, dword [esp + 0x14]
or byte [eax + 0xd], 1
jmp 0x85055f
mov ecx, eax
shr ecx, 7
movzx ecx, byte [ecx + 0x8a0804]
shl ecx, 7
and eax, 0x7f
or eax, ecx
movzx eax, word [eax + eax + 0x8a2a04]
cmp dword [eax*8 + 0x89f188], 0
lea ebp, [esp + 0x5c]
je 0x850557
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 0x8505e5
test al, 2
jne 0x85057b
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
and ecx, 0x10
jne 0x8505e5
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov word [edx + 0x1a], cx
test al, 1
je 0x8505dd
movzx eax, cx
cmp dword [esp + 0x34], 0
je 0x8505c2
cmp eax, 0x7f
jbe 0x8505c9
mov ecx, eax
shr ecx, 7
movzx ecx, byte [ecx + 0x8a0804]
shl ecx, 7
and eax, 0x7f
or eax, ecx
movzx eax, word [eax + eax + 0x8a2a04]
cmp dword [eax*8 + 0x89f188], 0
jne 0x8505d5
jmp 0x8505dd
cmp eax, 0xff
ja 0x8505dd
mov ecx, dword [esp + 0x60]
movzx ecx, byte [ecx + eax]
cmp eax, ecx
je 0x8505dd
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.00851af0
add esp, 0x10
test eax, eax
jne 0x85061e
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 0x8505e9
jmp 0x84f906
mov eax, dword [esp + 0x14]
or byte [eax + 0xd], 0x80
jmp 0x84f906