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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4e9942
sub esp, 0x58
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax]
test cx, 0x80
jne 0x4e91df
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x58
ret
mov ecx, dword [esp + 0x64]
cmp ecx, 2
jl 0x4e9197
mov edx, dword [esp + 0x60]
movzx ebx, byte [edx]
cmp bl, 0x5c
jne 0x4e9197
movzx ebx, byte [edx + 1]
cmp bl, 0x70
je 0x4e9202
cmp bl, 0x50
jne 0x4e9197
cmp bl, 0x50
jne 0x4e9938
mov ebx, 0xffffffff
mov dword [esp + 0x28], ebx
lea ebp, [ecx - 3]
sar ebp, 0x1f
xor ebp, 0xffffffff
and ebp, 2
add ebp, edx
mov dword [esp], ebp
lea ebp, [ecx - 2]
mov dword [esp + 4], ebp
call fcn.004eb250
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x4e98f8
cmp eax, 0x7b
je 0x4e96ce
mov eax, dword [esp + 0x64]
mov ebx, eax
sub eax, ecx
cmp eax, ebx
ja 0x4e96c7
cmp eax, 2
jb 0x4e96c0
lea ebx, [eax - 3]
sar ebx, 0x1f
xor ebx, 0xffffffff
and ebx, 2
mov ebp, dword [esp + 0x60]
add ebx, ebp
lea esi, [eax - 2]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ecx
test esi, esi
je 0x4e96b5
movzx edi, byte [ebx]
xchg edi, eax
cmp al, 0x5e
xchg edi, eax
jne 0x4e96aa
mov edi, dword [esp + 0x28]
xchg edi, ebx
neg ebx
xchg edi, ebx
lea ebp, [esi - 2]
sar ebp, 0x1f
xor ebp, 0xffffffff
and ebp, 1
add ebx, ebp
lea ebp, [esi - 1]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], edi
cmp ebp, 3
jne 0x4e959f
movzx esi, byte [ebx]
xchg esi, eax
cmp al, 0x41
xchg esi, eax
jne 0x4e959f
movzx esi, byte [ebx + 1]
xchg esi, eax
cmp al, 0x6e
xchg esi, eax
jne 0x4e959f
movzx esi, byte [ebx + 2]
xchg esi, eax
cmp al, 0x79
xchg esi, eax
jne 0x4e959f
mov ebx, dword [0x86e004]
mov ebp, ebx
mov dword [esp + 0x4c], ebp
test ebx, ebx
je 0x4e94de
mov eax, dword [esp + 0x5c]
movzx esi, word [eax]
test si, 1
jne 0x4e93c2
test edi, edi
jle 0x4e9394
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004eaaa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x58
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004eac70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x4e9358
test ebp, ebp
jne 0x4e93cb
jmp 0x4e9328
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0x28]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.004eaaa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
call fcn.004eaaa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edx
mov ecx, dword [0x884700]
lea edx, [ebx + 0x20]
mov dword [esp + 0x54], edx
test ecx, ecx
jne 0x4e94c9
mov dword [ebx + 0x20], eax
mov dword [esp], edx
call fcn.004ea2d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4e9490
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004ea840
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x4e9358
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004ea9a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x4e9358
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040d5a0
mov edx, dword [esp + 0x54]
jmp 0x4e943b
lea ecx, [0x6ca800]
mov dword [esp], ecx
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov dword [eax + 4], 0x1d
mov ecx, dword [0x884700]
test ecx, ecx
jne 0x4e9584
lea ecx, [0x70ee4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x884700]
lea edx, [eax + 8]
test ecx, ecx
jne 0x4e956e
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x8483c0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x58
ret
mov dword [esp], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x50]
jmp 0x4e9528
mov dword [esp], eax
lea ecx, [0x70ee4c]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x50]
jmp 0x4e950d
lea esi, [0x6b6e60]
mov dword [esp], esi
mov eax, dword [0x8725e0]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00409500
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4e9614
lea ecx, [0x6b6e60]
mov dword [esp], ecx
mov ecx, dword [0x8725e4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
call fcn.00409500
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
jmp 0x4e930a
lea eax, [0x6b6e60]
mov dword [esp], eax
mov ecx, dword [0x8725f0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
call fcn.00409500
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4e9663
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ebp, ebx
jmp 0x4e930a
lea ecx, [0x6b6e60]
mov dword [esp], ecx
mov ecx, dword [0x8725e8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
call fcn.00409500
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
jmp 0x4e930a
mov ebp, esi
mov edi, dword [esp + 0x28]
jmp 0x4e92c1
mov ebp, esi
mov edi, dword [esp + 0x28]
jmp 0x4e92c1
call fcn.004246e0
ud2
call fcn.004246e0
ud2
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x7d
call fcn.004b9880
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x4e97d3
lea ecx, [eax + 1]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x64]
cmp ecx, edx
ja 0x4e97cc
mov ebx, edx
sub edx, ecx
mov dword [esp + 0x24], edx
lea ebp, [edx - 1]
sar ebp, 0x1f
xor ebp, 0xffffffff
and ebp, ecx
mov esi, dword [esp + 0x60]
add ebp, esi
mov dword [esp + 0x38], ebp
cmp eax, 3
jb 0x4e97c5
cmp eax, ebx
ja 0x4e97c5
lea ebx, [eax - 4]
sar ebx, 0x1f
xor ebx, 0xffffffff
and ebx, 3
add ebx, esi
mov dword [esp + 0x44], ebx
mov dword [esp], ebx
add eax, 0xfffffffd
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
call fcn.004eb120
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x4e9785
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
jmp 0x4e9284
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x58
ret
call fcn.004246e0
ud2
call fcn.004246e0
ud2
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.004eb120
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4e98b8
lea eax, [0x6ca800]
mov dword [esp], eax
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov dword [eax + 4], 0x1d
mov ecx, dword [0x884700]
test ecx, ecx
jne 0x4e989d
lea ecx, [0x70ee4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x884700]
lea edx, [eax + 8]
test ecx, ecx
jne 0x4e9887
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x8483c0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x58
ret
mov dword [esp], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x50]
jmp 0x4e9841
mov dword [esp], eax
lea ecx, [0x70ee4c]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x50]
jmp 0x4e9826
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x58
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebx
add esp, 0x58
ret
mov ebx, 1
jmp 0x4e9210
call fcn.004486b0
jmp fcn.004e9170