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

Disassembly:
push 0xffffffffffffffff
push 0x54c803
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x48], esi
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x54], ebx
mov dword [ebx], 0
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f9515
test dword [eax + 0x1c], 0x100
je 0x4f9515
cmp byte [eax + 0x19], 6
jb 0x4f9515
push dword [eax + 0x14]
mov edx, 0x570204
mov ecx, 0x15
push dword [eax + 0x10]
call fcn.004f0d20
add esp, 8
xor ebp, ebp
push 8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004ea3a0
add esp, 4
test eax, eax
jne 0x4f953e
call fcn.0052898e
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [esp + 0xb8], 0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi]
lea ecx, [esp + 0x78]
mov dword [esp + 0x74], eax
xor eax, eax
push 8
push str.McShield
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
call fcn.0047c530
lea eax, [esp + 0x74]
mov byte [esp + 0xb8], 1
push eax
lea ecx, [esp + 0x20]
call fcn.004f9b40
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x8c], 8
jb 0x4f95d1
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4f95d1
push eax
call fcn.005074d4
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x4f99d8
lea esp, [esp]
test ebp, ebp
jne 0x4f99d8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.004f9c30
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4f9600
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [esp + 0x1c]
mov edi, dword [eax]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x40], edi
call fcn.004f9c30
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4f962b
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
add eax, 4
mov word [esp + 0x7c], cx
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
call fcn.0047c410
mov byte [esp + 0xb8], 2
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
dec ecx
and ecx, dword [esp + 0x28]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x18], 8
jb 0x4f9696
mov eax, dword [esi + 4]
test eax, eax
je 0x4f9696
push eax
call fcn.005074d4
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
dec dword [esp + 0x2c]
jne 0x4f96b6
mov dword [esp + 0x28], eax
jmp 0x4f96ba
inc dword [esp + 0x28]
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f9700
test dword [eax + 0x1c], 0x100
je 0x4f9700
cmp byte [eax + 0x19], 6
jb 0x4f9700
cmp dword [esp + 0x88], 8
mov ecx, dword [esp + 0x74]
jae 0x4f96e7
lea ecx, [esp + 0x74]
push ecx
push dword [eax + 0x14]
mov edx, 0x570204
mov ecx, 0x16
push dword [eax + 0x10]
call fcn.004f2920
add esp, 0xc
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0x1c]
test eax, eax
jne 0x4f97b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x44], ebp
cmp ebp, 0x425
jne 0x4f9773
mov ecx, dword [0x596f88]
cmp ecx, 0x596f88
je 0x4f975c
test dword [ecx + 0x1c], 0x100
je 0x4f975c
cmp byte [ecx + 0x19], 6
jb 0x4f975c
push dword [ecx + 0x14]
mov edx, 0x570204
push dword [ecx + 0x10]
mov ecx, 0x17
call fcn.004f0d20
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx]
cmp dword [ebx], 0xf
jb 0x4f9700
jmp 0x4f99a3
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f97a7
test dword [eax + 0x1c], 0x100
je 0x4f97a7
cmp byte [eax + 0x19], 6
jb 0x4f97a7
push ebp
push dword [eax + 0x14]
mov edx, 0x570204
mov ecx, 0x18
push dword [eax + 0x10]
call fcn.004f0d40
add esp, 0xc
test ebp, ebp
jne 0x4f99a3
jmp 0x4f97ec
mov dword [esp + 0x44], 0
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4f97ec
test dword [eax + 0x1c], 0x100
je 0x4f97ec
cmp byte [eax + 0x19], 6
jb 0x4f97ec
push dword [eax + 0x14]
mov edx, 0x570204
mov ecx, 0x19
push dword [eax + 0x10]
call fcn.004f0d20
add esp, 8
push 0xffdc
call fcn.00507c0d
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x4f9a57
mov esi, 0xffdc
lea esp, [esp]
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], esi
push ecx
push esi
push ebx
push 3
mov ecx, edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x64], 0
call dword [eax + 0x20]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x58], eax
cmp edi, esi
jbe 0x4f9883
mov esi, edi
shr esi, 1
add esi, edi
test ebx, ebx
je 0x4f9864
push ebx
call fcn.005074d4
mov edi, dword [esp + 0x44]
add esp, 4
push esi
call fcn.00507c0d
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x4f987f
test esi, esi
jne 0x4f9a28
mov eax, dword [esp + 0x58]
test ebp, ebp
jne 0x4f98b1
cmp eax, 0xea
jne 0x4f998a
cmp edi, dword [esp + 0x18]
jbe 0x4f998a
cmp edi, 0xf4240
mov edi, dword [esp + 0x3c]
jb 0x4f9810
jmp 0x4f998a
mov eax, dword [esp + 0x48]
cmp dword [eax + 4], 0
je 0x4f998a
mov edi, dword [esp + 0x50]
dec edi
js 0x4f998a
lea eax, [edi + edi*2]
lea esi, [ebx + eax*4]
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + 4]
push 0
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x4f997c
mov edx, dword [esi]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
cmp word [edx], ax
je 0x4f992f
mov eax, edx
lea ebp, [eax + 2]
jmp 0x4f9920
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f9920
sub eax, ebp
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x9c]
call fcn.0047c530
lea eax, [esp + 0x90]
mov byte [esp + 0xb8], 3
push eax
lea ecx, [esp + 0x20]
call fcn.004f9b40
mov byte [esp + 0xb8], 2
cmp dword [esp + 0xa8], 8
jb 0x4f997c
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4f997c
push eax
call fcn.005074d4
add esp, 4
sub esi, 0xc
dec edi
jns 0x4f98d4
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4f9997
push ebx
call fcn.005074d4
add esp, 4
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x88], 8
jb 0x4f99cd
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4f99cd
push eax
call fcn.005074d4
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x4f95e0
lea eax, [esp + 0x68]
xor esi, esi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004f9c30
mov ecx, dword [eax]
test ecx, ecx
je 0x4f9a02
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f9a02
mov esi, dword [ecx]
mov dword [esp + 0x30], esi
mov edi, dword [eax + 8]
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
mov dword [esp + 0x38], edi
push eax
call fcn.004f9c50
cmp edi, dword [eax + 8]
je 0x4f9aca
test esi, esi
jne 0x4f9a86
xor eax, eax
jmp 0x4f9a88
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_allocation
push eax
lea ecx, [esp + 0x38]
call fcn.00506ce8
push 0x591d2c
lea eax, [esp + 0x34]
mov dword [esp + 0x34], vtable.std::bad_alloc.0
push eax
call fcn.0053e44f
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_allocation
push eax
lea ecx, [esp + 0x38]
call fcn.00506ce8
push 0x591d2c
lea eax, [esp + 0x34]
mov dword [esp + 0x34], vtable.std::bad_alloc.0
push eax
call fcn.0053e44f
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x38]
call fcn.004f9c70
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.004f9c50
mov edi, dword [esp + 0x38]
cmp edi, dword [eax + 8]
je 0x4f9aca
mov esi, dword [esp + 0x30]
jmp 0x4f9a20
lea ecx, [esp + 0x1c]
call fcn.004f9e00
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f9ae4
push eax
call fcn.005074d4
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00506c7d
add esp, 0xa8
ret 8