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

Disassembly:
push 0xffffffffffffffff
push 0x54d013
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596c60]
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 [0x597f88]
cmp eax, 0x597f88
je 0x4f9ce5
test dword [eax + 0x1c], 0x100
je 0x4f9ce5
cmp byte [eax + 0x19], 6
jb 0x4f9ce5
push dword [eax + 0x14]
mov edx, 0x571204
mov ecx, 0x15
push dword [eax + 0x10]
call fcn.004f15f0
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.004eac70
add esp, 4
test eax, eax
jne 0x4f9d0e
call fcn.0052901e
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.0047c4b0
lea eax, [esp + 0x74]
mov byte [esp + 0xb8], 1
push eax
lea ecx, [esp + 0x20]
call fcn.004fa310
mov byte [esp + 0xb8], 0
cmp dword [esp + 0x8c], 8
jb 0x4f9da1
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4f9da1
push eax
call fcn.00507b54
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x4fa1a8
lea esp, [esp]
test ebp, ebp
jne 0x4fa1a8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.004fa400
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4f9dd0
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.004fa400
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4f9dfb
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.0047c390
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 0x4f9e66
mov eax, dword [esi + 4]
test eax, eax
je 0x4f9e66
push eax
call fcn.00507b54
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 0x4f9e86
mov dword [esp + 0x28], eax
jmp 0x4f9e8a
inc dword [esp + 0x28]
mov eax, dword [0x597f88]
cmp eax, 0x597f88
je 0x4f9ed0
test dword [eax + 0x1c], 0x100
je 0x4f9ed0
cmp byte [eax + 0x19], 6
jb 0x4f9ed0
cmp dword [esp + 0x88], 8
mov ecx, dword [esp + 0x74]
jae 0x4f9eb7
lea ecx, [esp + 0x74]
push ecx
push dword [eax + 0x14]
mov edx, 0x571204
mov ecx, 0x16
push dword [eax + 0x10]
call fcn.004f31f0
add esp, 0xc
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0x1c]
test eax, eax
jne 0x4f9f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x44], ebp
cmp ebp, 0x425
jne 0x4f9f43
mov ecx, dword [0x597f88]
cmp ecx, 0x597f88
je 0x4f9f2c
test dword [ecx + 0x1c], 0x100
je 0x4f9f2c
cmp byte [ecx + 0x19], 6
jb 0x4f9f2c
push dword [ecx + 0x14]
mov edx, 0x571204
push dword [ecx + 0x10]
mov ecx, 0x17
call fcn.004f15f0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx]
cmp dword [ebx], 0xf
jb 0x4f9ed0
jmp 0x4fa173
mov eax, dword [0x597f88]
cmp eax, 0x597f88
je 0x4f9f77
test dword [eax + 0x1c], 0x100
je 0x4f9f77
cmp byte [eax + 0x19], 6
jb 0x4f9f77
push ebp
push dword [eax + 0x14]
mov edx, 0x571204
mov ecx, 0x18
push dword [eax + 0x10]
call fcn.004f1610
add esp, 0xc
test ebp, ebp
jne 0x4fa173
jmp 0x4f9fbc
mov dword [esp + 0x44], 0
mov eax, dword [0x597f88]
cmp eax, 0x597f88
je 0x4f9fbc
test dword [eax + 0x1c], 0x100
je 0x4f9fbc
cmp byte [eax + 0x19], 6
jb 0x4f9fbc
push dword [eax + 0x14]
mov edx, 0x571204
mov ecx, 0x19
push dword [eax + 0x10]
call fcn.004f15f0
add esp, 8
push 0xffdc
call fcn.0050828d
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x4fa227
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 0x4fa053
mov esi, edi
shr esi, 1
add esi, edi
test ebx, ebx
je 0x4fa034
push ebx
call fcn.00507b54
mov edi, dword [esp + 0x44]
add esp, 4
push esi
call fcn.0050828d
mov ebx, eax
add esp, 4
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x4fa04f
test esi, esi
jne 0x4fa1f8
mov eax, dword [esp + 0x58]
test ebp, ebp
jne 0x4fa081
cmp eax, 0xea
jne 0x4fa15a
cmp edi, dword [esp + 0x18]
jbe 0x4fa15a
cmp edi, 0xf4240
mov edi, dword [esp + 0x3c]
jb 0x4f9fe0
jmp 0x4fa15a
mov eax, dword [esp + 0x48]
cmp dword [eax + 4], 0
je 0x4fa15a
mov edi, dword [esp + 0x50]
dec edi
js 0x4fa15a
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 0x4fa14c
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 0x4fa0ff
mov eax, edx
lea ebp, [eax + 2]
jmp 0x4fa0f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4fa0f0
sub eax, ebp
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x9c]
call fcn.0047c4b0
lea eax, [esp + 0x90]
mov byte [esp + 0xb8], 3
push eax
lea ecx, [esp + 0x20]
call fcn.004fa310
mov byte [esp + 0xb8], 2
cmp dword [esp + 0xa8], 8
jb 0x4fa14c
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4fa14c
push eax
call fcn.00507b54
add esp, 4
sub esi, 0xc
dec edi
jns 0x4fa0a4
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4fa167
push ebx
call fcn.00507b54
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 0x4fa19d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4fa19d
push eax
call fcn.00507b54
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x4f9db0
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.004fa400
mov ecx, dword [eax]
test ecx, ecx
je 0x4fa1d2
mov ecx, dword [ecx]
test ecx, ecx
je 0x4fa1d2
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.004fa420
cmp edi, dword [eax + 8]
je 0x4fa29a
test esi, esi
jne 0x4fa256
xor eax, eax
jmp 0x4fa258
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_allocation
push eax
lea ecx, [esp + 0x38]
call fcn.00507368
push 0x592bac
lea eax, [esp + 0x34]
mov dword [esp + 0x34], vtable.std::bad_alloc.0
push eax
call fcn.0053eadf
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_allocation
push eax
lea ecx, [esp + 0x38]
call fcn.00507368
push 0x592bac
lea eax, [esp + 0x34]
mov dword [esp + 0x34], vtable.std::bad_alloc.0
push eax
call fcn.0053eadf
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.004fa440
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.004fa420
mov edi, dword [esp + 0x38]
cmp edi, dword [eax + 8]
je 0x4fa29a
mov esi, dword [esp + 0x30]
jmp 0x4fa1f0
lea ecx, [esp + 0x1c]
call fcn.004fa5d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fa2b4
push eax
call fcn.00507b54
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.005072fd
add esp, 0xa8
ret 8