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

Disassembly:
mov eax, 0x11c8
call fcn.00509650
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x11c4], eax
mov edx, dword [esp + 0x11d8]
mov eax, dword [esp + 0x11cc]
mov ecx, dword [esp + 0x11d4]
push ebx
mov ebx, dword [esp + 0x11e0]
push ebp
push esi
push edi
or ebp, 0xffffffff
mov dword [esp + 0x20], eax
or edi, 0xffffffff
mov dword [esp + 0x58], ecx
xor esi, esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
test edx, edx
jne 0x49b4e7
test ecx, ecx
je 0x49c22e
mov dword [ecx], 0x63
jmp 0x49c22e
mov dword [edx], esi
test ecx, ecx
je 0x49b4ef
mov dword [ecx], esi
test ebx, ebx
jne 0x49b4ff
mov esi, 0x10
mov edx, esi
jmp 0x49c202
mov eax, dword [esp + 0x11f0]
mov ecx, 0x7526b0
test eax, eax
mov dword [ebx], esi
mov ebx, dword [esp + 0x11e0]
cmovne ecx, eax
mov dword [esp + 0x40], ecx
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 ebx, 0xd8008580
je 0x49b551
mov esi, 0x11
jmp 0x49c1e9
mov eax, dword [esp + 0x20]
mov ecx, ebx
and ecx, 0x10000
mov dword [esp + 0xc0], esi
mov dword [esp + 0x44], ecx
cmp byte [eax], 0x28
jne 0x49b8a0
mov ebp, eax
cmp byte [esi + ebp + 1], 0x2a
jne 0x49b889
push 5
lea edi, [ebp + 2]
add edi, esi
push str.UTF8_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b5a5
add esi, 7
or ebx, 0x800
jmp 0x49b86e
push 4
push str.UTF_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b5c7
add esi, 6
or ebx, 0x800
jmp 0x49b86e
push 4
push str.UCP_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b5e9
add esi, 6
or ebx, 0x20000000
jmp 0x49b86e
push 0x10
push str.NO_AUTO_POSSESS_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b60b
add esi, 0x12
or ebx, 0x20000
jmp 0x49b86e
push 0xd
push str.NO_START_OPT_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b62d
add esi, 0xf
or ebx, 0x4000000
jmp 0x49b86e
push 0xc
push str.LIMIT_MATCH
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b6cd
lea ebx, [esi + 0xe]
xor edi, edi
add ebp, ebx
movzx eax, byte [ebp]
push eax
call fcn.00516950
add esp, 4
test eax, eax
je 0x49b68f
mov esi, dword [esp + 0x20]
cmp edi, 0x19999998
ja 0x49b68b
movzx eax, byte [ebp]
lea ecx, [edi - 6]
inc ebx
lea ecx, [edi + ecx*4]
lea ebp, [esi + ebx]
lea edi, [eax + ecx*2]
movzx eax, byte [ebp]
push eax
call fcn.00516950
add esp, 4
test eax, eax
jne 0x49b661
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov al, byte [eax + ebx]
cmp al, 0x29
jne 0x49b889
mov eax, dword [esp + 0x28]
cmp edi, eax
jae 0x49b6b1
or dword [esp + 0xc0], 0x2000
mov ebp, dword [esp + 0x20]
lea esi, [ebx + 1]
mov ebx, dword [esp + 0x11e0]
cmp edi, eax
cmovae edi, eax
mov dword [esp + 0x28], edi
jmp 0x49b875
push 0x10
push str.LIMIT_RECURSION
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b768
lea ebx, [esi + 0x12]
xor edi, edi
add ebp, ebx
movzx eax, byte [ebp]
push eax
call fcn.00516950
add esp, 4
test eax, eax
je 0x49b72f
mov esi, dword [esp + 0x20]
cmp edi, 0x19999998
ja 0x49b72b
movzx eax, byte [ebp]
lea ecx, [edi - 6]
inc ebx
lea ecx, [edi + ecx*4]
lea ebp, [esi + ebx]
lea edi, [eax + ecx*2]
movzx eax, byte [ebp]
push eax
call fcn.00516950
add esp, 4
test eax, eax
jne 0x49b701
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
cmp byte [ebx + ebp], 0x29
jne 0x49b889
mov eax, dword [esp + 0x10]
cmp edi, eax
jae 0x49b750
or dword [esp + 0xc0], 0x4000
cmp edi, eax
lea esi, [ebx + 1]
mov ebx, dword [esp + 0x11e0]
cmovae edi, eax
mov dword [esp + 0x10], edi
jmp 0x49b879
push 3
push 0x751c74
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b791
mov eax, 0x100000
and ebx, 0xff8fffff
add esi, 5
or ebx, eax
jmp 0x49b86e
push 3
push 0x751c78
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b7ba
mov eax, 0x200000
and ebx, 0xff8fffff
add esi, 5
or ebx, eax
jmp 0x49b86e
push 5
push str.CRLF_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b7e3
mov eax, 0x300000
and ebx, 0xff8fffff
add esi, 7
or ebx, eax
jmp 0x49b86e
push 4
push str.ANY_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b809
mov eax, 0x400000
and ebx, 0xff8fffff
add esi, 6
or ebx, eax
jmp 0x49b86e
push 8
push str.ANYCRLF_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b82f
mov eax, 0x500000
and ebx, 0xff8fffff
add esi, 0xa
or ebx, eax
jmp 0x49b86e
push 0xc
push str.BSR_ANYCRLF_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b84a
mov eax, 0x800000
jmp 0x49b863
push 0xc
push str.BSR_UNICODE_
push edi
call fcn.0050ecb0
add esp, 0xc
test eax, eax
jne 0x49b889
mov eax, 0x1000000
and ebx, 0xfe7fffff
or ebx, eax
add esi, 0xe
mov dword [esp + 0x11e0], ebx
mov edi, dword [esp + 0x10]
cmp byte [esi + ebp], 0x28
mov dword [esp + 0x14], esi
je 0x49b573
jmp 0x49b88d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x11e0]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov edx, ebx
shr edx, 0xb
and edx, 1
mov dword [esp + 0x2c], edx
je 0x49b8e9
test ecx, ecx
je 0x49b8be
mov esi, 0x4e
mov edx, esi
jmp 0x49c202
test ebx, 0x2000
jne 0x49b8e9
push dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call fcn.004aa840
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x49b8e9
mov esi, 0x2c
mov edx, esi
jmp 0x49c202
mov eax, ebx
and eax, 0x1800000
cmp eax, 0x1800000
je 0x49c1e4
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x49b96e
je 0x49b94c
test eax, eax
je 0x49b921
cmp eax, 0x100000
je 0x49b945
cmp eax, 0x200000
jne 0x49c1e4
mov eax, 0xa
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 1
mov byte [esp + 0xe0], al
jmp 0x49b998
mov eax, 0xd
jmp 0x49b926
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 2
mov word [esp + 0xe0], 0xa0d
jmp 0x49b998
cmp eax, 0x400000
je 0x49b98d
cmp eax, 0x500000
jne 0x49c1e4
mov dword [esp + 0xd8], 2
jmp 0x49b998
mov dword [esp + 0xd8], 1
lea eax, [esp + 0x1d4]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x8c], 0
lea edx, [ecx + 1]
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x98], 0x1000
mov dword [esp + 0x94], 0x14
mov dword [esp + 0x74], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ba40
sub ecx, edx
mov dword [esp + 0xc4], 0
mov edx, dword [esp + 0x20]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xa4], 0
lea eax, [ecx + edx]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x78], eax
lea eax, [edx + esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1d4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x84], 0
push eax
push 0
lea eax, [esp + 0x40]
mov byte [esp + 0x1e0], 0x83
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00499a20
mov esi, dword [esp + 0x54]
add esp, 0x3c
test esi, esi
jne 0x49c1e9
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
cmp ecx, 0x10000
jle 0x49bb16
mov esi, 0x14
jmp 0x49c1e9
cmp dword [esp + 0xd4], 0
je 0x49bb32
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x49bb32
lea ecx, [ecx + eax*2]
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x90]
imul esi, dword [esp + 0x8c]
add esi, 0x38
add esi, ecx
push esi
call dword [0x880674]
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
test edx, edx
jne 0x49bb62
lea esi, [eax + 0x15]
jmp 0x49c1e9
mov dword [edx], 0x50435245
xor ecx, ecx
mov dword [edx + 4], esi
xorps xmm0, xmm0
mov eax, dword [esp + 0xbc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [edx + 0x18], eax
mov eax, 0x38
mov word [edx + 0x22], ax
mov dword [edx + 0x10], ebp
mov dword [edx + 0x14], edi
movzx eax, word [esp + 0x90]
mov word [edx + 0x24], ax
movzx eax, word [esp + 0x8c]
mov word [edx + 0x26], ax
xor eax, eax
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x40]
cmp eax, 0x7526b0
mov dword [edx + 0x34], ecx
cmove eax, ecx
mov dword [edx + 0x30], eax
xor eax, eax
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa4], ecx
movzx ebp, word [edx + 0x22]
add ebp, edx
mov dword [esp + 0x88], ebp
movzx ecx, word [edx + 0x24]
movzx eax, word [edx + 0x26]
mov edx, dword [esp + 0x8c]
imul eax, ecx
movups xmmword [esp + 0xc4], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x40], edx
add eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
test edx, edx
jle 0x49bdc6
xor edi, edi
mov dword [esp + 0x8c], edi
test edx, edx
jle 0x49bdac
mov ebx, dword [esp + 0x84]
xor ecx, ecx
add ebx, 4
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [esp + 0x50], eax
mov eax, dword [ebx - 4]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x49bd53
mov edx, dword [esp + 0x30]
lea eax, [ebp + 2]
sub esi, 4
jb 0x49bca2
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x49bca7
add edx, 4
add eax, 4
sub esi, 4
jae 0x49bc91
cmp esi, 0xfffffffc
je 0x49bcdb
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x49bcd4
cmp esi, 0xfffffffd
je 0x49bcdb
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x49bcd4
cmp esi, 0xfffffffe
je 0x49bcdb
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x49bcd4
cmp esi, 0xffffffff
je 0x49bcdb
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x49bcdb
sbb eax, eax
or eax, 1
jmp 0x49bcdd
xor eax, eax
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x49bd23
cmp byte [esi + ebp + 2], al
je 0x49bd25
mov eax, dword [esp + 0x90]
mov edx, ebp
sub edi, dword [esp + 0x24]
imul edi, eax
lea ecx, [eax + ebp]
cmp ecx, ebp
jbe 0x49bd3f
add ecx, edi
lea edx, [edi + ebp]
test edi, edi
je 0x49bd53
nop dword [eax + eax]
mov al, byte [edx - 1]
lea edx, [edx - 1]
mov byte [ecx - 1], al
lea ecx, [ecx - 1]
sub edi, 1
jne 0x49bd10
jmp 0x49bd53
js 0x49bceb
mov eax, dword [esp + 0x24]
add ebp, dword [esp + 0x90]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edi
jl 0x49bc85
jmp 0x49bd53
test edi, edi
je 0x49bd53
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub edi, 1
jne 0x49bd43
mov ecx, dword [esp + 0x50]
mov eax, ecx
shr eax, 8
push esi
push dword [esp + 0x34]
mov byte [ebp], al
lea eax, [ebp + 2]
push eax
mov byte [ebp + 1], cl
call fcn.0050a630
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov byte [esi + ebp + 2], 0
dec edx
mov edi, dword [esp + 0x8c]
add ebx, 0xc
inc edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x8c], edi
mov ecx, edi
test edx, edx
jle 0x49bda5
mov ebp, dword [esp + 0x88]
jmp 0x49bc63
mov ebx, dword [esp + 0x11e0]
cmp dword [esp + 0x94], 0x14
jle 0x49bdc6
push dword [esp + 0x84]
call dword [0x880678]
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x18]
mov byte [eax], 0x83
lea eax, [esp + 0x60]
push eax
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esi + 8]
call fcn.00499a20
movzx eax, word [esp + 0xd8]
add esp, 0x3c
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, 1
mov dword [esi + 0xc], eax
cmp dword [esp + 0xc8], 0
je 0x49be68
or eax, 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
jmp 0x49be78
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x49be92
mov eax, dword [esp + 0x24]
mov edx, 0x16
cmp byte [eax], cl
cmovne ecx, edx
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x1c]
mov ecx, 0x17
mov byte [ebp], 0
inc ebp
mov esi, dword [esp + 0x18]
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x6c]
cmovg esi, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
cmp eax, edi
jbe 0x49bf6d
or ecx, 0xffffffff
xor edx, edx
mov dword [esp + 0x3c], ecx
test esi, esi
jne 0x49bf6d
nop word [eax + eax]
cmp eax, edi
jbe 0x49bf69
sub eax, 2
mov dword [esp + 0x7c], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x10]
movzx esi, byte [ecx + eax]
lea ebp, [ecx + eax]
inc eax
shl esi, 8
add eax, ecx
mov dword [esp + 0x48], eax
movzx eax, byte [eax]
or esi, eax
cmp esi, dword [esp + 0x3c]
je 0x49bf32
push esi
push dword [esp + 0x30]
push dword [esp + 0x18]
call fcn.00493240
add esp, 0xc
mov dword [esp + 0x3c], esi
mov edx, eax
test edx, edx
je 0x49bf60
mov ecx, edx
mov al, dl
sub ecx, dword [esp + 0x10]
sub al, byte [esp + 0x10]
sar ecx, 8
mov byte [ebp], cl
mov ecx, dword [esp + 0x48]
mov byte [ecx], al
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x6c]
test esi, esi
jne 0x49bf69
mov eax, dword [esp + 0x7c]
jmp 0x49bee0
mov esi, 0x35
mov dword [esp + 0x18], esi
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x98], 0x1000
jle 0x49bf88
push edi
call dword [0x880678]
mov esi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x6c], 0
test esi, esi
jne 0x49bfac
mov ecx, dword [esp + 0x14]
mov edx, 0xf
mov ax, word [ecx + 0x20]
cmp ax, word [ecx + 0x1e]
cmova esi, edx
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x2c]
test ebx, 0x20000
mov ebx, dword [esp + 0x10]
jne 0x49bfcf
lea eax, [esp + 0x5c]
push eax
push edi
push ebx
call fcn.00493b90
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0xd0], 0
je 0x49c077
push 0xffffffffffffffff
push edi
push ebx
call fcn.00493240
mov edi, eax
add esp, 0xc
test edi, edi
je 0x49c077
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x49c05b
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x18]
push 1
mov bl, byte [esi + edi - 3]
mov byte [esi + edi - 3], cl
mov eax, dword [eax + 8]
shr eax, 0xb
and eax, 1
push eax
push edi
call fcn.0049a5a0
mov edx, eax
mov byte [esi + edi - 3], bl
add esp, 0x10
test edx, edx
js 0x49c091
mov ecx, dword [esp + 0xa4]
cmp edx, ecx
cmovg ecx, edx
sar eax, 8
mov dword [esp + 0xa4], ecx
mov byte [edi + 1], al
mov byte [edi + 2], dl
push 0xffffffffffffffff
push dword [esp + 0x30]
lea eax, [edi + 3]
push eax
call fcn.00493240
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49bff3
mov esi, dword [esp + 0x18]
test esi, esi
je 0x49c0ca
push dword [esp + 0x14]
call dword [0x880678]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x49c1e9
cmp edx, 0xfffffffe
jne 0x49c0b4
push dword [esp + 0x14]
mov dword [esp + 0x1c], 0x24
call dword [0x880678]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x49c1e9
cmp edx, 0xfffffffc
mov esi, 0x19
mov eax, 0x46
cmove esi, eax
mov dword [esp + 0x18], esi
jmp 0x49c077
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 8]
test bl, 0x10
jne 0x49c169
push 0
lea eax, [esp + 0x60]
push eax
push 0
push dword [esp + 0x1c]
call fcn.0049b100
add esp, 0x10
test eax, eax
je 0x49c0fe
or ebx, 0x10
mov dword [esi + 8], ebx
jmp 0x49c169
mov eax, dword [esp + 0x28]
test eax, eax
jns 0x49c143
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0
push eax
push ebx
call fcn.0049a410
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
jns 0x49c147
push 0
lea eax, [esp + 0x60]
push eax
push 0
push ebx
call fcn.0049b2b0
add esp, 0x10
test eax, eax
je 0x49c169
or dword [esi + 0xc], 0x100
jmp 0x49c169
mov ecx, dword [esp + 0x44]
movzx edx, cl
mov word [esi + 0x18], dx
test al, 1
je 0x49c165
mov eax, dword [esp + 0x60]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x49c165
or dword [esi + 0xc], 0x20
or dword [esi + 0xc], 0x10
mov eax, dword [esp + 0x34]
test eax, eax
js 0x49c1a4
test byte [esi + 8], 0x10
je 0x49c17b
test al, 2
je 0x49c1a4
mov ecx, dword [esp + 0x38]
movzx edx, cl
mov word [esi + 0x1a], dx
test al, 1
je 0x49c1a0
mov eax, dword [esp + 0x60]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x49c1a0
or dword [esi + 0xc], 0x80
or dword [esi + 0xc], 0x40
mov ebx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x34]
push ebp
push ebx
call fcn.00499f20
add esp, 0x14
test eax, eax
jne 0x49c1d9
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
add ebx, ecx
cmp byte [ebx], 0x77
je 0x49c1a8
mov eax, esi
jmp 0x49c230
or dword [esi + 0xc], 0x8000
mov eax, esi
jmp 0x49c230
mov esi, 0x38
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
mov dword [ecx], eax
mov edx, esi
mov ecx, str.no_error
test edx, edx
jle 0x49c21e
mov ecx, str.no_error
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c207
cmp byte [ecx], al
je 0x49c219
dec edx
test edx, edx
jg 0x49c207
jmp 0x49c21e
mov ecx, str.Error_text_not_found__please_report_
mov eax, dword [esp + 0x54]
mov dword [eax], ecx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x49c22e
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0x11d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x11c8
ret