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

Disassembly:
push 0xffffffffffffffff
push 0x623566
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8b4
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp + 0x2c]
push edi
cmp eax, ebx
mov dword [esp + 0x30], ebp
je 0x4e7e7a
mov esi, dword [eax + 0x114]
cmp esi, ebx
jne 0x4e7ea0
mov ecx, dword [0x7259a4]
mov eax, dword [ecx]
call dword [eax + 0xa8]
test eax, eax
je 0x4e7ea0
mov ecx, dword [0x7259a4]
mov edx, dword [ecx]
call dword [edx + 0xa8]
mov esi, dword [eax + 0x114]
mov word [0x704f98], bx
mov eax, dword [ebp + 0xcc]
mov ecx, eax
mov word [esp + 0xb8], bx
shr ecx, 4
test cl, 1
mov dword [esp + 0x14], 4
je 0x4e7ecf
mov dword [esp + 0x14], 0x1804
mov cl, byte [ebp + 0x1c8]
test cl, cl
je 0x4e7ee1
or dword [esp + 0x14], 0x880020
mov edx, eax
shr edx, 5
test dl, 1
je 0x4e7ef3
or dword [esp + 0x14], 0x80200
mov ecx, eax
shr ecx, 7
test cl, 1
jne 0x4e7f02
or dword [esp + 0x14], 8
shr eax, 2
test al, 1
je 0x4e7f13
mov eax, dword [esp + 0x14]
or al, 2
mov dword [esp + 0x14], eax
mov edx, dword [0x6e0dcc]
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1a0]
mov ecx, dword [0x6e0ea0]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x406
mov dword [esp + 0x34], ecx
mov edx, dword [ebp + 0x1a4]
lea eax, [ebp + 0x1a4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x8cc], ebx
mov ebp, dword [edx - 8]
mov dword [esp + 0x24], eax
push ebp
call fcn.004e9e10
xor esi, esi
cmp ebp, ebx
jbe 0x4e7fe9
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.004e9cc0
mov eax, dword [edi]
mov di, word [eax + esi*2]
mov eax, edi
and eax, 0xffff
cmp eax, 0x2f
je 0x4e7fa3
cmp eax, 0x5c
je 0x4e7fa8
jmp 0x4e7fd8
mov edi, 0x5c
lea ebx, [ebp - 1]
cmp esi, ebx
jae 0x4e7fd8
mov ecx, dword [esp + 0x24]
call fcn.004e9cc0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ax, word [edx + esi*2 + 2]
cmp ax, 0x5c
je 0x4e7fcf
cmp ax, 0x2f
jne 0x4e7fd8
test esi, esi
jbe 0x4e7fd8
inc esi
cmp esi, ebx
jb 0x4e7faf
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.004e9db0
inc esi
cmp esi, ebp
jb 0x4e7f7f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
push 0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], 0x4e7910
call fcn.004ec5b0
push 0
lea ecx, [esp + 0xac]
mov byte [esp + 0x8d0], 1
call fcn.004ec5b0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xa8]
lea eax, [esp + 0x98]
push edx
add ecx, 0x1b0
push eax
push ecx
mov byte [esp + 0x8d8], 2
call fcn.004fb1e0
mov edi, eax
mov eax, dword [0x6e0ea0]
add esp, 0xc
mov dword [esp + 0x18], eax
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
xor esi, esi
test edi, edi
mov byte [esp + 0x8cc], 3
jbe 0x4e80e1
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004ea760
push 0x6e0e14
call ebx
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x6e0e14
push eax
call fcn.004ea760
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004ea760
push 0x6e0e14
call ebx
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x6e0e14
push eax
call fcn.004ea760
inc esi
cmp esi, edi
jb 0x4e8072
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
xor esi, esi
test ecx, ecx
jbe 0x4e8110
cmp word [eax + esi*2], 0x7c
jne 0x4e8108
lea ecx, [esp + 0x18]
call fcn.004e9cc0
mov ecx, dword [esp + 0x18]
mov word [ecx + esi*2], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jb 0x4e80ea
mov esi, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
push 0xfffd
mov edx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1ac]
lea ebp, [esi + 0x1ac]
inc edx
push eax
push 0x704f98
mov dword [esp + 0x64], edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [0x6e0ea0]
add esp, 0xc
mov word [0x724f92], 0
mov dword [esp + 0x5c], 0x704f98
mov dword [esp + 0x60], 0xfffe
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0xcc]
mov byte [esp + 0x8cc], 4
shr ecx, 1
test cl, 1
je 0x4e82e2
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x18]
lea eax, [edx + edx - 1]
test eax, eax
jle 0x4e81a5
mov edi, eax
test esi, esi
je 0x4e819c
push esi
call ebx
add esp, 4
jmp 0x4e819e
xor eax, eax
dec edi
lea esi, [esi + eax*2 + 2]
jne 0x4e8190
test esi, esi
jne 0x4e81ae
mov esi, 0x6fdb50
mov eax, dword [0x65329c]
lea ecx, [esp + 0x1c]
push eax
push 0
push esi
call fcn.004e9b90
mov ecx, dword [0x65329c]
mov byte [esp + 0x8cc], 5
push ecx
push 0
push 0x6e0e10
lea ecx, [esp + 0x38]
call fcn.004e9b90
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x8d8], 6
call fcn.004de160
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8d0], 7
call fcn.004ea610
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4e8234
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8234
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x4e823a
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e8255
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8255
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x8cc], 4
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4e8279
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8279
push eax
call esi
add esp, 4
push 0
push 0x6e0e08
lea ecx, [esp + 0x30]
call fcn.004eb7a0
test al, al
je 0x4e82e2
mov edx, dword [0x65329c]
lea eax, [esp + 0x20]
push edx
push 2
push eax
lea ecx, [esp + 0x34]
call fcn.004eb6d0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8d0], 8
call fcn.004ea610
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x8cc], 4
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4e82da
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e82da
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
lea eax, [esp + 0x3c]
push eax
call fcn.004fad70
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x48]
mov edx, dword [esi + 0xcc]
mov byte [esp + 0x8d4], 9
push edx
push eax
call fcn.004e8840
mov cl, al
add esp, 0x10
test cl, cl
mov byte [esp + 0x13], cl
jne 0x4e837e
cmp dword [esp + 0x38], 1
jne 0x4e8777
mov edx, dword [esp + 0x40]
mov eax, 0x4c
cmp edx, eax
je 0x4e8777
mov edx, dword [esi + 0xcc]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call fcn.004e8840
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x4e836c
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4e8773
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
test al, al
mov dword [0x6e0dcc], ecx
je 0x4e8773
test byte [esp + 0x14], 8
je 0x4e8392
lea edx, [esp + 0x3c]
push edx
call fcn.004fae40
add esp, 4
lea edi, [esi + 0x1b8]
mov ecx, edi
mov dword [esp + 0x2c], edi
call fcn.004ec760
mov eax, dword [esi + 0xcc]
shr eax, 5
test al, 1
je 0x4e855a
mov ecx, dword [esp + 0x78]
and ecx, 0xffff
cmp word [ecx*2 + 0x704f96], 0
jne 0x4e855a
mov ecx, dword [esp + 0x24]
push 0x704f98
call fcn.004ea6a0
mov esi, dword [esp + 0x78]
mov ecx, ebp
and esi, 0xffff
lea edx, [esi*2 + 0x704f98]
push edx
call fcn.004ea6a0
push 1
push ebp
mov ecx, edi
call fcn.004ec930
mov eax, dword [ebp]
mov eax, dword [eax - 8]
lea edi, [esi + eax + 1]
cmp word [edi*2 + 0x704f98], 0
lea esi, [edi*2 + 0x704f98]
je 0x4e84a8
mov bl, 0xa
test esi, esi
mov eax, esi
jne 0x4e842b
mov eax, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004e9b90
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x8d4], bl
call fcn.004ec930
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x8cc], 9
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e847c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e847c
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test esi, esi
je 0x4e848c
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x4e848e
xor eax, eax
lea edi, [edi + eax + 1]
cmp word [edi*2 + 0x704f98], 0
lea esi, [edi*2 + 0x704f98]
jne 0x4e8420
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4e84c1
mov ecx, dword [0x6e0ea0]
mov dword [esp + 0x14], ecx
jmp 0x4e84d1
mov dword [esp + 0x14], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x4e84d1
inc ecx
mov dword [eax - 0xc], ecx
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x8cc], 0xb
mov esi, dword [edx - 8]
call fcn.004e9cc0
mov eax, dword [edi]
cmp word [eax + esi*2 - 2], 0x5c
je 0x4e84fc
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.004e9db0
lea ecx, [esp + 0x14]
push ebp
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004eada0
add esp, 0xc
mov esi, dword [esp + 0x30]
push eax
mov byte [esp + 0x8d0], 0xc
lea ecx, [esi + 0x1a8]
call fcn.004ea610
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e8546
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8546
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
dec ecx
mov dword [esi + 0x1b4], ecx
jmp 0x4e8757
mov ecx, dword [esp + 0x58]
lea eax, [ecx - 1]
mov dword [esi + 0x1b4], eax
mov eax, dword [esp + 0x7a]
test ax, ax
je 0x4e8584
and eax, 0xffff
cmp word [eax*2 + 0x704f98], 0
jne 0x4e86c1
mov esi, dword [esp + 0x18]
lea eax, [ecx + ecx - 1]
test eax, eax
jle 0x4e85a7
mov edi, eax
test esi, esi
je 0x4e859e
push esi
call ebx
add esp, 4
jmp 0x4e85a0
xor eax, eax
dec edi
lea esi, [esi + eax*2 + 2]
jne 0x4e8592
test esi, esi
jne 0x4e85b0
mov esi, 0x6fdb50
mov ecx, dword [0x65329c]
push ecx
push 0
push esi
lea ecx, [esp + 0x20]
call fcn.004e9b90
mov edx, dword [0x65329c]
lea ecx, [esp + 0x1c]
push edx
push 0
push 0x704f98
mov byte [esp + 0x8d8], 0xd
call fcn.004e9b90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x8d8], 0xe
call fcn.004de160
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x8d0], 0xf
call fcn.004ea610
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e8634
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8634
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x4e863a
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4e8656
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8656
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x14]
mov byte [esp + 0x8cc], 9
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4e867a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e867a
push eax
call esi
add esp, 4
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp ecx, 0xfffd
jb 0x4e868d
mov ecx, 0xfffd
push ecx
push eax
push 0x704f98
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [ebp]
add esp, 0xc
mov eax, dword [eax - 8]
cmp eax, 0xfffd
jb 0x4e86af
mov eax, 0xfffd
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov word [eax*2 + 0x704f98], 0
push 0x704f98
lea ecx, [esi + 0x1a8]
call fcn.004ea6a0
push 0x704f98
call fcn.004fa3c0
add esp, 4
mov ecx, ebp
push eax
call fcn.004ea6a0
push 1
push ebp
mov ecx, edi
call fcn.004ec930
mov ecx, dword [0x65329c]
push ecx
push 0
push 0x704f98
lea ecx, [esp + 0x28]
call fcn.004e9b90
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x8d4], 0x10
call fcn.004fa5d0
add esp, 8
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x8d0], 0x11
call fcn.004ea610
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4e8753
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8753
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4e8773
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e8773
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.MSVCRT.dll_free]
neg cl
sbb ecx, ecx
add eax, 0xfffffff4
add ecx, 0x13ed
mov esi, ecx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e87a4
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e87a4
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x28]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x4e87c0
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e87c0
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x4e87dc
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e87dc
push eax
call edi
add esp, 4
lea ecx, [esp + 0xa8]
mov byte [esp + 0x8cc], 1
call fcn.004ec7b0
lea ecx, [esp + 0x98]
mov byte [esp + 0x8cc], 0
call fcn.004ec7b0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4e881f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4e881f
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x8c4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c0
ret