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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7819
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x503870]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x503870]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
lea ecx, [esp + 0x28]
call fcn.004eb120
xor ebx, ebx
mov dword [esp + 0x290], ebx
lea eax, [esp + 0x28]
push eax
call fcn.004e7b10
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004eb120
mov byte [esp + 0x290], 1
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push 0x4dd1a4
push edx
call fcn.004ed780
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
mov byte [esp + 0x27], 1
call dword [fcn.004cd3cc]
test eax, eax
je 0x4f6f2c
mov ecx, dword [0x50afcc]
push ebx
push 0x1e26
push 0x4dd1d8
push ecx
call dword [0x4cd634]
push ebx
push 0x504e8c
push ebx
push ebx
push 0x4dd1f0
mov esi, eax
push ebx
push esi
mov dword [esp + 0x40], esi
call dword [0x4cd630]
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, eax
push ebx
push edi
call dword [0x4cd62c]
push ebx
push edi
call dword [0x4cd63c]
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push 0x20000005
push edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x54], ebx
call dword [0x4cd644]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4f720d
inc eax
push eax
call 0x5600c9
mov ecx, dword [esp + 0x40]
mov esi, eax
add esp, 4
mov byte [esi + ecx], bl
mov dword [esp + 0x14], esi
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
call dword [0x4cd648]
test eax, eax
je 0x4f71f2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x40], ebx
call dword [0x4cd64c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
cmp dword [esp + 0x1c], ebx
ja 0x4f6d80
push 0x14
call 0x56008f
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x290], 2
cmp eax, ebx
je 0x4f6e09
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x30], edx
mov edx, dword [esi]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4f6e0d
mov dword [esp + 0x14], ebx
mov byte [esp + 0x290], 1
push esi
call 0x5600be
mov esi, dword [0x4cd638]
add esp, 4
push edi
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x34], ebx
call 0x59f920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x34], esi
neg ecx
or ecx, eax
push ecx
call 0x5600c9
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x34]
push esi
push eax
push ebx
push ecx
mov dword [esp + 0x34], esi
call 0x59f926
test eax, eax
je 0x4f6f01
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push 0x4dd210
push esi
call 0x59f92c
test eax, eax
je 0x4f6f01
push 0x14
call 0x56008f
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x290], 3
cmp eax, ebx
je 0x4f6ee4
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, ecx
mov edi, edx
and esi, 0xffff
shr ecx, 0x10
and edi, 0xffff
shr edx, 0x10
mov dword [eax + 0x10], esi
mov esi, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
jmp 0x4f6ee6
xor eax, eax
mov byte [esp + 0x290], 1
mov ecx, dword [esp + 0x14]
mov edi, eax
call fcn.00536380
test eax, eax
jg 0x4f6f01
mov byte [esp + 0x23], bl
push esi
call 0x5600be
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, ebx
je 0x4f6f17
call fcn.004f72e0
cmp edi, ebx
je 0x4f6f22
mov esi, edi
call fcn.004f72e0
cmp byte [esp + 0x23], bl
je 0x4f7049
mov edx, dword [0x50afcc]
push ebx
push 0x1e26
push 0x4dd1d8
push edx
call dword [0x4cd634]
push ebx
push 0x504e8c
push ebx
push ebx
push 0x4dd214
mov edi, eax
push ebx
push edi
mov dword [esp + 0x50], edi
call dword [0x4cd630]
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, eax
push ebx
push esi
call dword [0x4cd62c]
push ebx
push esi
call dword [0x4cd63c]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x20000005
push esi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x3c], ebx
call dword [0x4cd644]
lea ecx, [esp + 0x40]
call 0x571b96
mov byte [esp + 0x290], 4
mov edx, dword [esp + 0x18]
push ebx
push 0x1001
push edx
lea ecx, [esp + 0x4c]
call 0x571ff4
test eax, eax
je 0x4f7227
cmp dword [esp + 0x24], ebx
je 0x4f721b
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [0x4cd648]
test eax, eax
je 0x4f7026
mov ecx, dword [esp + 0x14]
push ecx
call 0x5600c9
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
push edi
push esi
mov dword [esp + 0x3c], ebx
call dword [0x4cd64c]
mov ecx, dword [esp + 0x2c]
push ecx
push edi
lea ecx, [esp + 0x48]
call 0x5718cc
push edi
call 0x5600be
mov edi, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x14], ebx
ja 0x4f6fd1
push esi
mov esi, dword [0x4cd638]
call esi
push edi
call esi
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x40]
call 0x571c9e
lea ecx, [esp + 0x38]
call fcn.004eb120
mov byte [esp + 0x290], 5
push 0x206
lea eax, [esp + 0x7a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x80], dx
call 0x587080
add esp, 0xc
push 0x104
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [0x4cd2f4]
mov esi, dword [0x50b060]
call fcn.005362d0
push eax
push 0x4dd238
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x44]
push 0x4dd288
push eax
call fcn.004ed780
add esp, 0x14
push ebx
call 0x584da3
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edx
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x48], eax
call 0x585334
add esp, 8
cmp eax, ebx
jne 0x4f725c
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 0xc
jl 0x4f725c
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
push ecx
call 0x585334
add esp, 8
cmp eax, ebx
jne 0x4f712e
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 0xc
jle 0x4f712e
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x54]
push eax
call 0x585334
add esp, 8
cmp eax, ebx
jne 0x4f725c
cmp dword [esp + 0x5c], 0xd
jl 0x4f725c
lea ecx, [esp + 0x14]
call fcn.004eb120
mov byte [esp + 0x290], 6
push 0x6a
call 0x56d384
cmp eax, ebx
je 0x4f7156
push 0x6a
push eax
lea ecx, [esp + 0x1c]
call fcn.004f1560
push 0x4dd2b8
lea ecx, [esp + 0x20]
call fcn.004f6010
mov byte [esp + 0x290], 7
push 1
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call fcn.004f7300
mov byte [esp + 0x290], 8
push eax
lea ecx, [esp + 0x20]
call fcn.004f0fe0
mov byte [esp + 0x290], 7
lea ecx, [esp + 0x24]
call fcn.004eb070
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4f71cb
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4f71cb
push eax
push ecx
call 0x585616
add esp, 8
cmp eax, ebx
je 0x4f71cb
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 4
je 0x4f723a
mov byte [esp + 0x290], 6
lea ecx, [esp + 0x1c]
call fcn.004eb070
mov byte [esp + 0x290], 5
lea ecx, [esp + 0x14]
call fcn.004eb070
jmp 0x4f7279
push esi
call 0x5600be
mov esi, dword [0x4cd638]
add esp, 4
push edi
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
jmp 0x4f728a
push edi
mov edi, dword [0x4cd638]
call edi
push esi
call edi
jmp 0x4f728a
push esi
mov esi, dword [0x4cd638]
call esi
push edi
call esi
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x40]
call 0x571c9e
jmp 0x4f728a
mov byte [esp + 0x290], 6
lea ecx, [esp + 0x1c]
call fcn.004eb070
mov byte [esp + 0x290], 5
lea ecx, [esp + 0x14]
call fcn.004eb070
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 1
push 0x4dd2e8
push edx
push eax
push 0x4dd2f8
push ebx
call dword [0x4cd3b4]
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x38]
call fcn.004eb070
mov byte [esp + 0x290], bl
lea ecx, [esp + 0x18]
call fcn.004eb070
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004eb070
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call 0x584249
mov esp, ebp
pop ebp
ret