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

Disassembly:
push 0xffffffffffffffff
push 0x4e66b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x58], ebp
mov al, byte [esp + 0x60]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov edi, 0x50b3c8
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x58], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x50b3c8
lea ecx, [esp + 0x7c]
call fcn.00407010
mov edi, 0x50b3c8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ea898]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x50b3c8
lea ecx, [esp + 0x7c]
call fcn.004329a0
mov ecx, dword [esp + 0x78]
xor edx, edx
dec ecx
cmp eax, ecx
lea ecx, [esp + 0x3c]
sete dl
mov dword [esp + 0x18], edx
call fcn.004d3fc2
lea eax, [esp + 0x3c]
push 0x2a
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x60], 3
call fcn.0040b190
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004d49fb
call fcn.00418660
add esp, 0xc
cmp eax, ebp
jbe 0x49bf81
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp eax, ebp
jle 0x49bf81
mov ecx, dword [esp + 0x40]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call fcn.004d4702
mov eax, dword [esp + 0x10]
push 0x50b3c8
push eax
mov byte [esp + 0x60], 4
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x49bf66
mov ecx, dword [esp + 0x10]
push 0x518908
push ecx
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x49bf66
mov dl, byte [esp + 0x60]
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00407190
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.00406db0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 5
call fcn.004a1c00
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 4
call fcn.00407190
xor ebp, ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 3
call fcn.004d498d
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jl 0x49becc
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x49bf8d
xor ebx, ebx
jmp 0x49bf96
mov ebx, dword [esp + 0x24]
sub ebx, eax
sar ebx, 4
xor edi, edi
cmp ebx, ebp
jle 0x49c038
jmp 0x49bfa6
mov eax, dword [esp + 0x20]
mov dl, byte [eax + ebp]
lea esi, [eax + ebp]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call fcn.00407190
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x2c]
push eax
push 0
push esi
call fcn.00406bb0
lea eax, [ebx - 1]
mov byte [esp + 0x58], 6
cmp edi, eax
jne 0x49bfe5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49c0ab
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x49bff2
mov eax, 0x4ea894
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.00407010
cmp eax, dword [0x4ea898]
je 0x49c1ac
mov ecx, dword [esp + 0x34]
push 1
add ecx, eax
mov byte [esp + 0x5c], 3
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x30]
call fcn.00407190
inc edi
add ebp, 0x10
cmp edi, ebx
jl 0x49bfa2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 2
call fcn.004d3ff5
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x58], 1
je 0x49c06b
push 0
mov ecx, esi
call fcn.0040acf0
add esi, 0x10
cmp esi, edi
jne 0x49c057
mov esi, dword [esp + 0x20]
push esi
call fcn.004d46f7
mov ecx, dword [esp + 0x68]
xor esi, esi
add esp, 4
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x49c247
mov al, byte [ecx - 1]
test al, al
je 0x49c23d
cmp al, 0xff
je 0x49c23d
dec al
mov byte [ecx - 1], al
jmp 0x49c247
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x49c0b8
mov eax, 0x4ea894
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.00407010
cmp eax, dword [0x4ea898]
je 0x49c16b
mov edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [esp + 0x68]
cmp edx, eax
jne 0x49c16b
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.00407190
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 2
call fcn.004d3ff5
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x58], 1
je 0x49c12d
push 0
mov ecx, esi
call fcn.0040acf0
add esi, 0x10
cmp esi, edi
jne 0x49c119
mov esi, dword [esp + 0x20]
push esi
call fcn.004d46f7
add esp, 4
xor eax, eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], eax
push 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x5c], al
call fcn.00407190
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00407190
jmp 0x49c277
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.00407190
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 2
call fcn.004d3ff5
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x58], 1
je 0x49c1ef
push 0
mov ecx, esi
call fcn.0040acf0
add esi, 0x10
cmp esi, edi
jne 0x49c19a
jmp 0x49c1eb
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.00407190
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 2
call fcn.004d3ff5
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov byte [esp + 0x58], 1
je 0x49c1ef
push 0
mov ecx, esi
call fcn.0040acf0
add esi, 0x10
cmp esi, edi
jne 0x49c1db
mov esi, dword [esp + 0x20]
push esi
call fcn.004d46f7
add esp, 4
xor eax, eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], eax
push 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x5c], al
call fcn.00407190
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00407190
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x64], esi
cmp ecx, esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
je 0x49c277
mov al, byte [ecx - 1]
test al, al
je 0x49c26d
cmp al, 0xff
je 0x49c26d
dec al
mov byte [ecx - 1], al
jmp 0x49c277
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret