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

Disassembly:
mov eax, 0x11b4
call fcn.004b5bb0
mov eax, dword [esp + 0x11c4]
push ebx
mov ebx, dword [esp + 0x11bc]
push ebp
push esi
xor esi, esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebx
push edi
test eax, eax
jne 0x499dac
mov eax, dword [esp + 0x11d0]
test eax, eax
je 0x49a99b
pop edi
pop esi
pop ebp
mov dword [eax], 0x63
xor eax, eax
pop ebx
add esp, 0x11b4
ret
mov dword [eax], esi
mov eax, dword [esp + 0x11d0]
test eax, eax
je 0x499dbb
mov dword [eax], esi
mov ebp, dword [esp + 0x11d8]
test ebp, ebp
jne 0x499dd4
mov esi, 0x10
mov dword [esp + 0x10], esi
jmp 0x49a97c
mov eax, dword [esp + 0x11dc]
mov ecx, 0x4ea7b8
mov edi, dword [esp + 0x11cc]
test eax, eax
mov dword [ebp], esi
cmovne ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
lea eax, [ecx + 0x100]
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x200]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0x50], eax
test edi, 0xd8008580
je 0x499e27
mov esi, 0x11
jmp 0x49a964
mov ecx, edi
mov dword [esp + 0xa8], esi
and ecx, 0x10000
cmp byte [ebx], 0x28
mov dword [esp + 0x18], ecx
jne 0x49a181
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop dword [eax]
cmp byte [ebx + esi + 1], 0x2a
jne 0x49a176
push 5
add ebx, 2
add ebx, esi
push str.UTF8_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499e7f
add esi, 7
or edi, 0x800
jmp 0x49a151
push 4
push str.UTF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499e9e
add esi, 6
or edi, 0x800
jmp 0x49a151
push 4
push str.UCP_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499ebd
add esi, 6
or edi, 0x20000000
jmp 0x49a151
push 0x10
push str.NO_AUTO_POSSESS_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499edc
add esi, 0x12
or edi, 0x20000
jmp 0x49a151
push 0xd
push str.NO_START_OPT_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499efb
add esi, 0xf
or edi, 0x4000000
jmp 0x49a151
push 0xc
push str.LIMIT_MATCH
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x499fb0
mov eax, dword [esp + 0x11c8]
lea ebp, [esi + 0xe]
add eax, ebp
xor ebx, ebx
mov dword [esp + 0x24], eax
movzx eax, byte [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
je 0x499f74
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x11c8]
nop
cmp ebx, 0x19999998
ja 0x499f69
movzx eax, byte [edi]
lea ecx, [ebx - 6]
inc ebp
lea ecx, [ebx + ecx*4]
lea edi, [esi + ebp]
lea ebx, [eax + ecx*2]
movzx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
jne 0x499f40
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x11cc]
mov eax, dword [esp + 0x11c8]
mov al, byte [eax + ebp]
cmp al, 0x29
jne 0x49a16f
mov eax, dword [esp + 0x28]
cmp ebx, eax
jae 0x499f99
or dword [esp + 0xa8], 0x2000
cmp ebx, eax
lea esi, [ebp + 1]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
cmovae ebx, eax
mov dword [esp + 0x28], ebx
jmp 0x49a158
push 0x10
push str.LIMIT_RECURSION
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a063
mov eax, dword [esp + 0x11c8]
lea ebp, [esi + 0x12]
add eax, ebp
xor ebx, ebx
mov dword [esp + 0x24], eax
movzx eax, byte [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
je 0x49a027
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x11c8]
cmp ebx, 0x19999998
ja 0x49a01c
movzx eax, byte [edi]
lea ecx, [ebx - 6]
inc ebp
lea ecx, [ebx + ecx*4]
lea edi, [esi + ebp]
lea ebx, [eax + ecx*2]
movzx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
jne 0x499ff3
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x11cc]
mov eax, dword [esp + 0x11c8]
mov al, byte [eax + ebp]
cmp al, 0x29
jne 0x49a16f
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jae 0x49a04c
or dword [esp + 0xa8], 0x4000
cmp ebx, eax
lea esi, [ebp + 1]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
cmovae ebx, eax
mov dword [esp + 0x2c], ebx
jmp 0x49a158
push 3
push 0x4ea5e4
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a089
mov eax, 0x100000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x49a151
push 3
push 0x4ea5e8
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a0af
mov eax, 0x200000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x49a151
push 5
push str.CRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a0d2
mov eax, 0x300000
and edi, 0xff8fffff
add esi, 7
or edi, eax
jmp 0x49a151
push 4
push str.ANY_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a0f5
mov eax, 0x400000
and edi, 0xff8fffff
add esi, 6
or edi, eax
jmp 0x49a151
push 8
push str.ANYCRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a118
mov eax, 0x500000
and edi, 0xff8fffff
add esi, 0xa
or edi, eax
jmp 0x49a151
push 0xc
push str.BSR_ANYCRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a130
mov eax, 0x800000
jmp 0x49a146
push 0xc
push str.BSR_UNICODE_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x49a16f
mov eax, 0x1000000
and edi, 0xfe7fffff
or edi, eax
add esi, 0xe
mov dword [esp + 0x11cc], edi
mov ebx, dword [esp + 0x11c8]
mov dword [esp + 0x14], esi
cmp byte [esi + ebx], 0x28
je 0x499e50
jmp 0x49a176
mov ebx, dword [esp + 0x11c8]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x11d8]
mov eax, edi
shr eax, 0xb
and eax, 1
mov dword [esp + 0x14], eax
je 0x49a1cb
test ecx, ecx
je 0x49a1a1
mov esi, 0x4e
mov dword [esp + 0x10], esi
jmp 0x49a97c
test edi, 0x2000
jne 0x49a1cb
push ebp
push 0xffffffffffffffff
push ebx
call fcn.004aae80
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x49a1cb
mov esi, 0x2c
mov dword [esp + 0x10], esi
jmp 0x49a97c
mov eax, edi
and eax, 0x1800000
cmp eax, 0x1800000
je 0x49a95f
mov eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x49a250
je 0x49a22e
test eax, eax
je 0x49a203
cmp eax, 0x100000
je 0x49a227
cmp eax, 0x200000
jne 0x49a95f
mov eax, 0xa
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 1
mov byte [esp + 0xd0], al
jmp 0x49a27a
mov eax, 0xd
jmp 0x49a208
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 2
mov word [esp + 0xd0], 0xa0d
jmp 0x49a27a
cmp eax, 0x400000
je 0x49a26f
cmp eax, 0x500000
jne 0x49a95f
mov dword [esp + 0xc8], 2
jmp 0x49a27a
mov dword [esp + 0xc8], 1
lea eax, [esp + 0x1c4]
mov dword [esp + 0x90], 0
mov ecx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x94], 0
mov dword [esp + 0x88], 0
lea edx, [ecx + 1]
mov dword [esp + 0x84], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0x80], 0x1000
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], 0x14
mov dword [esp + 0x5c], ebx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a324
sub ecx, edx
mov dword [esp + 0xac], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x8c], 0
lea eax, [ecx + ebx]
mov dword [esp + 0xa4], edi
mov dword [esp + 0x60], eax
lea eax, [esi + ebx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x6c], 0
push eax
push 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x1d0], 0x83
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00498000
mov esi, dword [esp + 0x4c]
add esp, 0x3c
test esi, esi
jne 0x49a968
mov esi, dword [esp + 0x20]
cmp esi, 0x10000
jle 0x49a3ef
mov esi, 0x14
jmp 0x49a964
mov eax, dword [esp + 0x78]
lea ebx, [esi + 0x38]
imul eax, dword [esp + 0x74]
add ebx, eax
push ebx
call dword [0x5077d8]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x49a415
lea esi, [eax + 0x15]
jmp 0x49a964
mov dword [ebp + 4], ebx
xor ecx, ecx
mov dword [ebp], 0x50435245
xorps xmm0, xmm0
mov eax, dword [esp + 0xa4]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0xa8]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x14], eax
xor eax, eax
mov dword [ebp + 0x18], eax
mov eax, 0x38
mov word [ebp + 0x22], ax
movzx eax, word [esp + 0x78]
mov word [ebp + 0x24], ax
movzx eax, word [esp + 0x74]
mov word [ebp + 0x26], ax
xor eax, eax
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x4ea7b8
mov dword [ebp + 0x34], ecx
cmove eax, ecx
mov dword [ebp + 0x30], eax
xor eax, eax
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x88], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ecx
movzx edx, word [ebp + 0x22]
add edx, ebp
mov dword [esp + 0x70], edx
movzx eax, word [ebp + 0x26]
movzx ebx, word [ebp + 0x24]
imul ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc4], ecx
add ebx, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], ebx
movups xmmword [esp + 0xac], xmm0
test eax, eax
jle 0x49a53c
mov esi, dword [esp + 0x6c]
mov edi, eax
mov dword [esp + 0x74], ecx
add esi, 4
nop dword [eax + eax]
push dword [esi + 4]
lea eax, [esp + 0x48]
push dword [esi]
push dword [esi - 4]
push eax
call fcn.004918b0
dec edi
lea esi, [esi + 0xc]
add esp, 0x10
test edi, edi
jg 0x49a500
cmp dword [esp + 0x7c], 0x14
mov edi, dword [esp + 0x11cc]
mov esi, dword [esp + 0x20]
jle 0x49a53c
push dword [esp + 0x6c]
call dword [0x5077dc]
add esp, 4
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x3c]
mov byte [ebx], 0x83
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], ebx
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x70]
push eax
push dword [ebp + 8]
call fcn.00498000
movzx eax, word [esp + 0xc0]
add esp, 0x3c
mov word [ebp + 0x1e], ax
movzx eax, word [esp + 0x90]
mov word [ebp + 0x20], ax
movzx eax, word [esp + 0x8c]
mov word [ebp + 0x1c], ax
mov eax, dword [esp + 0xa8]
or eax, 1
mov dword [ebp + 0xc], eax
cmp dword [esp + 0xb0], 0
je 0x49a5d6
or eax, 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], eax
jmp 0x49a5e6
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x49a600
mov eax, dword [esp + 0x1c]
mov edx, 0x16
cmp byte [eax], cl
cmovne ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x3c]
mov edx, 0x17
mov byte [eax], 0
inc eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
sub eax, ebx
cmp eax, esi
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
cmovg ecx, edx
mov dword [esp + 0x10], ecx
cmp eax, esi
jbe 0x49a6de
xor edx, edx
mov dword [esp + 0x18], 0xffffffff
test ecx, ecx
jne 0x49a6de
cmp eax, esi
jbe 0x49a6de
sub eax, 2
mov dword [esp + 0x64], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
je 0x49a6d5
cmp byte [ecx + ebx - 1], 0x75
jne 0x49a6d5
movzx esi, byte [ecx + ebx]
lea eax, [ecx + ebx]
inc ecx
mov dword [esp + 0x38], eax
add ecx, ebx
shl esi, 8
mov dword [esp + 0x34], ecx
movzx eax, byte [ecx]
or esi, eax
cmp esi, dword [esp + 0x18]
je 0x49a69a
push esi
push dword [esp + 0x18]
push ebx
call fcn.004916f0
add esp, 0xc
mov dword [esp + 0x18], esi
mov edx, eax
test edx, edx
je 0x49a6ca
mov eax, dword [esp + 0x38]
mov ecx, edx
sub ecx, ebx
sar ecx, 8
mov byte [eax], cl
mov al, dl
mov ecx, dword [esp + 0x34]
sub al, bl
mov byte [ecx], al
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
test ecx, ecx
jne 0x49a6de
mov eax, dword [esp + 0x64]
jmp 0x49a642
mov esi, dword [esp + 0x54]
mov ecx, 0x35
jmp 0x49a6da
mov ecx, 0xa
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x80], 0x1000
jle 0x49a6f9
push esi
call dword [0x5077dc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x54], 0
test ecx, ecx
jne 0x49a717
mov ax, word [ebp + 0x20]
cmp ax, word [ebp + 0x1e]
jbe 0x49a72a
mov dword [esp + 0x10], 0xf
push ebp
call dword [0x5077dc]
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x49a968
mov esi, dword [esp + 0x14]
test edi, 0x20000
jne 0x49a74c
lea eax, [esp + 0x44]
push eax
push esi
push ebx
call fcn.00491d50
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x49a717
cmp dword [esp + 0xb8], 0
je 0x49a7fe
push 0xffffffffffffffff
push esi
push ebx
call fcn.004916f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x49a7fe
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x49a7d9
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x44]
push ecx
push eax
push 1
mov bl, byte [esi + edi - 3]
mov byte [esi + edi - 3], cl
mov eax, dword [ebp + 8]
shr eax, 0xb
and eax, 1
push eax
push edi
call fcn.00498c50
mov edx, eax
mov byte [esi + edi - 3], bl
add esp, 0x14
test edx, edx
js 0x49a832
mov ecx, dword [esp + 0x8c]
cmp edx, ecx
mov esi, dword [esp + 0x14]
cmovg ecx, edx
sar eax, 8
mov dword [esp + 0x8c], ecx
mov byte [edi + 1], al
mov byte [edi + 2], dl
push 0xffffffffffffffff
lea eax, [edi + 3]
push esi
push eax
call fcn.004916f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49a770
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49a717
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
test al, 0x10
jne 0x49a8d5
push 0
lea eax, [esp + 0x48]
push eax
push 0
push ebx
call fcn.004999a0
add esp, 0x10
test eax, eax
je 0x49a86c
mov eax, dword [esp + 0x38]
or eax, 0x10
mov dword [ebp + 8], eax
jmp 0x49a8d5
cmp edx, 0xfffffffe
jne 0x49a852
push ebp
mov dword [esp + 0x14], 0x24
call dword [0x5077dc]
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x49a968
mov esi, dword [esp + 0x14]
cmp edx, 0xfffffffc
mov eax, 0x19
mov ecx, 0x46
cmove eax, ecx
mov dword [esp + 0x10], eax
jmp 0x49a7f2
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x49a8af
push 0
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.00498ac0
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x49a8b3
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
push ebx
call fcn.00499b60
add esp, 0x14
test eax, eax
je 0x49a8d5
or dword [ebp + 0xc], 0x100
jmp 0x49a8d5
mov ecx, dword [esp + 0x24]
movzx edx, cl
mov word [ebp + 0x18], dx
test al, 1
je 0x49a8d1
mov eax, dword [esp + 0x48]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x49a8d1
or dword [ebp + 0xc], 0x20
or dword [ebp + 0xc], 0x10
mov eax, dword [esp + 0x30]
test eax, eax
js 0x49a910
test byte [ebp + 8], 0x10
je 0x49a8e7
test al, 2
je 0x49a910
mov ecx, dword [esp + 0x20]
movzx edx, cl
mov word [ebp + 0x1a], dx
test al, 1
je 0x49a90c
mov eax, dword [esp + 0x48]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x49a90c
or dword [ebp + 0xc], 0x80
or dword [ebp + 0xc], 0x40
mov edi, dword [esp + 0x28]
push 0
lea eax, [esp + 0x48]
push eax
push esi
push edi
push ebx
call fcn.00498580
add esp, 0x14
test eax, eax
jne 0x49a94b
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
add ebx, ecx
cmp byte [ebx], 0x77
je 0x49a914
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x11b4
ret
or dword [ebp + 0xc], 0x8000
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11b4
ret
mov esi, 0x38
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x11d8]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x11c8]
mov dword [ecx], eax
push esi
call fcn.00498a90
mov ecx, dword [esp + 0x11d8]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 0x11d0]
test eax, eax
je 0x49a99b
mov dword [eax], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11b4
ret