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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c4
call fcn.00508210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x38], 1
xor esi, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0xffffffff
mov edi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x4d1e75
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4d12b5
lea ebx, [esi + 0x10]
jmp 0x4d1e69
mov dword [eax], esi
mov dword [esp + 0x50], 0x6ec898
mov dword [esp + 0x54], 0x6ec998
mov dword [esp + 0x58], 0x6eca98
mov dword [esp + 0x5c], 0x6ecbd8
test edi, 0xd8008580
je 0x4d12e9
mov ebx, 0x11
jmp 0x4d1e5c
mov ecx, edi
mov dword [esp + 0xb4], esi
and ecx, 0x10000
cmp byte [ebx], 0x28
mov dword [esp + 0x44], ecx
jne 0x4d1638
cmp byte [ebx + esi + 1], 0x2a
jne 0x4d1634
push 5
add ebx, 2
add ebx, esi
push str.UTF8_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d1337
add esi, 7
or edi, 0x800
jmp 0x4d1618
push 4
push str.UTF_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d1359
add esi, 6
or edi, 0x800
jmp 0x4d1618
push 4
push str.UCP_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d137b
add esi, 6
or edi, 0x20000000
jmp 0x4d1618
push 0x10
push str.NO_AUTO_POSSESS_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d139d
add esi, 0x12
or edi, 0x20000
jmp 0x4d1618
push 0xd
push str.NO_START_OPT_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d13bf
add esi, 0xf
or edi, 0x4000000
jmp 0x4d1618
push 0xc
push str.LIMIT_MATCH
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d146a
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xe]
mov dword [esp + 0x14], eax
xor ebx, ebx
movzx eax, byte [eax + ecx]
push eax
call fcn.0051a6d1
add esp, 4
test eax, eax
je 0x4d1433
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
cmp ebx, 0x19999998
ja 0x4d1427
movzx eax, byte [edi + esi]
lea ecx, [ebx - 6]
inc edi
lea ecx, [ebx + ecx*4]
lea ebx, [eax + ecx*2]
movzx eax, byte [edi + esi]
push eax
call fcn.0051a6d1
add esp, 4
test eax, eax
jne 0x4d1400
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov al, byte [ecx + eax]
cmp al, 0x29
jne 0x4d1630
mov eax, dword [esp + 0x30]
cmp ebx, eax
jae 0x4d1459
or dword [esp + 0xb4], 0x2000
cmp ebx, eax
lea esi, [ecx + 1]
cmovae ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x4d161c
push 0x10
push str.LIMIT_RECURSION
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d1512
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x12]
mov dword [esp + 0x14], eax
xor ebx, ebx
movzx eax, byte [eax + ecx]
push eax
call fcn.0051a6d1
add esp, 4
test eax, eax
je 0x4d14db
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebx, 0x19999998
ja 0x4d14cf
movzx eax, byte [edi + esi]
lea ecx, [ebx - 6]
inc edi
lea ecx, [ebx + ecx*4]
lea ebx, [eax + ecx*2]
movzx eax, byte [edi + esi]
push eax
call fcn.0051a6d1
add esp, 4
test eax, eax
jne 0x4d14a8
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov al, byte [ecx + eax]
cmp al, 0x29
jne 0x4d1630
mov eax, dword [esp + 0x24]
cmp ebx, eax
jae 0x4d1501
or dword [esp + 0xb4], 0x4000
cmp ebx, eax
lea esi, [ecx + 1]
cmovae ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x4d161c
push 3
push 0x6f3c30
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d153b
mov eax, 0x100000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x4d1618
push 3
push 0x6f3c34
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d1564
mov eax, 0x200000
and edi, 0xff8fffff
add esi, 5
or edi, eax
jmp 0x4d1618
push 5
push str.CRLF_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d158d
mov eax, 0x300000
and edi, 0xff8fffff
add esi, 7
or edi, eax
jmp 0x4d1618
push 4
push str.ANY_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d15b3
mov eax, 0x400000
and edi, 0xff8fffff
add esi, 6
or edi, eax
jmp 0x4d1618
push 8
push str.ANYCRLF_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d15d9
mov eax, 0x500000
and edi, 0xff8fffff
add esi, 0xa
or edi, eax
jmp 0x4d1618
push 0xc
push str.BSR_ANYCRLF_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d15f4
mov eax, 0x800000
jmp 0x4d160d
push 0xc
push str.BSR_UNICODE_
push ebx
call fcn.005264a0
add esp, 0xc
test eax, eax
jne 0x4d1630
mov eax, 0x1000000
and edi, 0xfe7fffff
or edi, eax
add esi, 0xe
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp byte [esi + ebx], 0x28
je 0x4d1305
jmp 0x4d1634
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov eax, edi
shr eax, 0xb
and eax, 1
mov dword [esp + 0x34], eax
je 0x4d167e
test ecx, ecx
je 0x4d1654
mov ebx, 0x4e
jmp 0x4d1e69
test edi, 0x2000
jne 0x4d167e
push dword [ebp + 0x10]
or edx, 0xffffffff
mov ecx, ebx
call fcn.004e1860
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x4d167e
mov ebx, 0x2c
jmp 0x4d1e69
mov eax, edi
and eax, 0x1800000
cmp eax, 0x1800000
je 0x4d1e57
mov eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x4d1703
je 0x4d16e1
test eax, eax
je 0x4d16b6
cmp eax, 0x100000
je 0x4d16da
cmp eax, 0x200000
jne 0x4d1e57
mov eax, 0xa
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 1
mov byte [esp + 0xdc], al
jmp 0x4d172d
mov eax, 0xd
jmp 0x4d16bb
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 2
mov word [esp + 0xdc], 0xa0d
jmp 0x4d172d
cmp eax, 0x400000
je 0x4d1722
cmp eax, 0x500000
jne 0x4d1e57
mov dword [esp + 0xd4], 2
jmp 0x4d172d
mov dword [esp + 0xd4], 1
lea eax, [esp + 0x1d0]
mov dword [esp + 0x9c], 0
mov ecx, ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0xa0], 0
mov dword [esp + 0x94], 0
lea edx, [ecx + 1]
mov dword [esp + 0x90], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0x8c], 0x1000
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], 0x14
mov dword [esp + 0x68], ebx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d17e0
sub ecx, edx
mov dword [esp + 0xb8], 0
lea edx, [esp + 0x20]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x98], 0
lea eax, [ecx + ebx]
mov dword [esp + 0xb0], edi
mov dword [esp + 0x6c], eax
mov ecx, edi
lea eax, [esi + ebx]
mov dword [esp + 0x74], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1d0]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
mov byte [esp + 0x1d4], 0x83
push eax
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004d0820
mov ebx, dword [esp + 0x5c]
add esp, 0x34
test ebx, ebx
jne 0x4d1e5c
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10000
jle 0x4d18ab
mov ebx, 0x14
jmp 0x4d1e5c
mov eax, dword [esp + 0x84]
lea ebx, [ecx + 0x38]
imul eax, dword [esp + 0x80]
add ebx, eax
push ebx
call fcn.004c8b60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4d18da
lea ebx, [eax + 0x15]
jmp 0x4d1e5c
mov dword [esi + 4], ebx
xorps xmm0, xmm0
mov dword [esi], 0x50435245
mov eax, dword [esp + 0xb0]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov eax, 0x38
mov word [esi + 0x22], ax
movzx eax, word [esp + 0x84]
mov word [esi + 0x24], ax
movzx eax, word [esp + 0x80]
mov word [esi + 0x26], ax
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
movzx edx, word [esi + 0x22]
add edx, esi
mov dword [esp + 0x7c], edx
movzx eax, word [esi + 0x24]
movzx ebx, word [esi + 0x26]
imul ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xd0], 0
add ebx, edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x64], ebx
movups xmmword [esp + 0xb8], xmm0
test eax, eax
jle 0x4d1a1a
mov edi, dword [esp + 0x78]
mov esi, eax
mov dword [esp + 0x80], 0
add edi, 4
nop word [eax + eax]
push dword [edi + 4]
mov edx, dword [edi - 4]
lea ecx, [esp + 0x54]
push dword [edi]
call fcn.004d1140
dec esi
lea edi, [edi + 0xc]
add esp, 8
test esi, esi
jg 0x4d19e0
cmp dword [esp + 0x88], 0x14
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
jle 0x4d1a1a
push dword [esp + 0x78]
call fcn.004c8b70
add esp, 4
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x20]
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x54]
push eax
push 0
lea eax, [esp + 0x48]
mov byte [ebx], 0x83
push eax
mov ecx, dword [esi + 8]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ebx
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004d0820
movzx eax, word [esp + 0xc4]
add esp, 0x34
mov word [esi + 0x1e], ax
movzx eax, word [esp + 0x9c]
mov word [esi + 0x20], ax
movzx eax, word [esp + 0x98]
mov word [esi + 0x1c], ax
mov eax, dword [esp + 0xb4]
or eax, 1
mov dword [esi + 0xc], eax
cmp dword [esp + 0xbc], 0
je 0x4d1ab4
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0xffffffff
jmp 0x4d1ac4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x4d1ada
mov eax, dword [esp + 0x2c]
mov edx, 0x16
cmp byte [eax], cl
cmovne ecx, edx
mov eax, dword [esp + 0x20]
mov edx, 0x17
mov byte [eax], 0
inc eax
mov dword [esp + 0x28], eax
sub eax, ebx
cmp eax, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
cmovg ecx, edx
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x60]
jbe 0x4d1bbe
xor edx, edx
mov dword [esp + 0x40], 0xffffffff
test ecx, ecx
jne 0x4d1bbe
nop dword [eax + eax]
mov ecx, dword [esp + 0x60]
cmp eax, ecx
jbe 0x4d1bc2
sub eax, 2
mov dword [esp + 0x70], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
je 0x4d1bb6
cmp byte [ecx + ebx - 1], 0x75
jne 0x4d1bb6
lea eax, [ecx + ebx]
inc ecx
add ecx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
movzx ecx, byte [eax]
mov eax, dword [esp + 0x3c]
shl ecx, 8
movzx eax, byte [eax]
or ecx, eax
mov dword [esp + 0x48], ecx
cmp ecx, dword [esp + 0x40]
je 0x4d1b88
mov edx, dword [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.004c9b70
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
test edx, edx
je 0x4d1bac
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 + 0x3c]
sub al, bl
mov byte [ecx], al
mov eax, dword [esp + 0x70]
jmp 0x4d1b20
mov dword [esp + 0x20], 0x35
jmp 0x4d1bbe
mov dword [esp + 0x20], 0xa
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x8c], 0x1000
jle 0x4d1bd8
push ecx
call fcn.004c8b70
add esp, 4
cmp dword [esp + 0x20], 0
mov dword [esp + 0x60], 0
jne 0x4d1e48
mov ax, word [esi + 0x20]
cmp ax, word [esi + 0x1e]
jbe 0x4d1c08
push esi
mov ebx, 0xf
call fcn.004c8b70
add esp, 4
jmp 0x4d1e5c
test edi, 0x20000
mov edi, dword [esp + 0x34]
jne 0x4d1c25
lea eax, [esp + 0x50]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004cb670
add esp, 4
cmp dword [esp + 0xc4], 0
je 0x4d1cd8
push 0xffffffffffffffff
mov edx, edi
mov ecx, ebx
call fcn.004c9b70
mov edi, eax
add esp, 4
test edi, edi
je 0x4d1cd8
nop dword [eax + eax]
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x4d1cb9
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov bl, byte [esi + edi - 3]
mov byte [esi + edi - 3], cl
mov ecx, edi
push 1
mov edx, dword [eax + 8]
shr edx, 0xb
and edx, 1
call fcn.004c97d0
mov edx, eax
mov byte [esi + edi - 3], bl
add esp, 0xc
test edx, edx
js 0x4d1d0b
mov ecx, dword [esp + 0x98]
cmp edx, ecx
cmovg ecx, edx
sar eax, 8
mov dword [esp + 0x98], ecx
mov byte [edi + 1], al
mov byte [edi + 2], dl
mov edx, dword [esp + 0x34]
lea ecx, [edi + 3]
push 0xffffffffffffffff
call fcn.004c9b70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d1c50
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 8]
mov eax, ecx
test cl, 0x10
jne 0x4d1dbf
lea eax, [esp + 0x50]
xor edx, edx
push 0
push eax
mov ecx, ebx
call fcn.004d0cd0
add esp, 8
test eax, eax
je 0x4d1d43
mov eax, dword [esi + 8]
or eax, 0x10
mov dword [esi + 8], eax
jmp 0x4d1dbf
mov esi, dword [esp + 0x10]
cmp edx, 0xfffffffe
jne 0x4d1d25
push esi
lea ebx, [edx + 0x26]
call fcn.004c8b70
add esp, 4
jmp 0x4d1e5c
cmp edx, 0xfffffffc
mov eax, 0x46
mov ebx, 0x19
push esi
cmove ebx, eax
call fcn.004c8b70
add esp, 4
jmp 0x4d1e5c
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x4d1d90
push 0
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.004d0fa0
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x4d1d94
mov edi, dword [esi + 8]
lea eax, [esp + 0x50]
push 0
push 0
push eax
xor edx, edx
mov dword [esp + 0x58], edi
mov ecx, ebx
call fcn.004d0df0
add esp, 0xc
test eax, eax
je 0x4d1dbb
or dword [esi + 0xc], 0x100
mov eax, edi
jmp 0x4d1dbf
mov ecx, dword [esp + 0x44]
movzx edx, cl
mov word [esi + 0x18], dx
test al, 1
je 0x4d1db2
mov eax, dword [esp + 0x54]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x4d1db2
or dword [esi + 0xc], 0x20
or dword [esi + 0xc], 0x10
mov eax, dword [esi + 8]
jmp 0x4d1dbf
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
test ecx, ecx
js 0x4d1dfa
test al, 0x10
je 0x4d1dd0
test cl, 2
je 0x4d1dfa
mov eax, dword [esp + 0x30]
movzx edx, al
mov word [esi + 0x1a], dx
test cl, 1
je 0x4d1df6
mov eax, dword [esp + 0x54]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x4d1df6
or dword [esi + 0xc], 0x80
or dword [esi + 0xc], 0x40
mov edi, dword [esp + 0x28]
nop
push 0
lea eax, [esp + 0x54]
mov edx, edi
push eax
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.004c9db0
add esp, 0xc
test eax, eax
jne 0x4d1e38
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
add ebx, ecx
cmp byte [ebx], 0x77
je 0x4d1e00
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 0xc], 0x8000
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x20]
push esi
call fcn.004c8b70
add esp, 4
jmp 0x4d1e5c
mov ebx, 0x38
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, ebx
call fcn.004c8b80
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret