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

Disassembly:
sub esp, 0x128
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], ebx
je 0x4fa265
push ebp
push edi
push 0x101
call fcn.00588cb9
mov dword [esp + 0x28], eax
mov byte [eax], 0
mov eax, dword [ebx]
add esp, 4
cmp eax, esi
mov ebp, 0x100
mov dword [esp + 0x28], ebp
mov edi, 0x5ad73f
jne 0x4f9c38
mov eax, edi
push eax
lea ecx, [esp + 0x28]
call fcn.00566e70
mov ecx, dword [esp + 0x24]
cmp ecx, esi
jne 0x4f9c4c
mov ecx, edi
call fcn.00401140
mov eax, dword [esp + 0x24]
cmp eax, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0xffffffff
jne 0x4f9c67
mov eax, edi
push eax
lea ecx, [esp + 0x40]
call fcn.00566e70
push str.TEAM.MAS
lea ecx, [esp + 0x40]
call fcn.00566ee0
mov eax, dword [esp + 0x3c]
cmp eax, esi
mov dword [esp + 0x44], esi
jne 0x4f9c8d
mov eax, edi
mov ecx, dword [0xa1e7e0]
push esi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00536720
mov eax, dword [ebx + 0x6d4]
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x4f9cb1
mov dword [esp + 0x20], edi
mov eax, dword [ebx + 0x6f0]
cmp eax, esi
mov dword [esp + 0x4c], eax
jne 0x4f9cc3
mov dword [esp + 0x4c], edi
push esi
push str.EventName
push 0x80
lea ecx, [esp + 0xc4]
push ecx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
je 0x4f9cec
mov byte [esp + 0xb8], 0
lea edi, [ebx + 0x6dc]
mov ecx, edi
mov dword [esp + 0x2c], esi
call fcn.004d3080
mov esi, eax
test esi, esi
je 0x4f9d45
mov eax, dword [esi]
test eax, eax
jne 0x4f9d0e
mov eax, 0x5ad73f
lea edx, [esp + 0xb8]
push edx
push eax
call fcn.00588ead
add esp, 8
test eax, eax
je 0x4f9d32
mov ecx, edi
call fcn.004155b0
mov esi, eax
test esi, esi
jne 0x4f9d03
jmp 0x4f9d45
mov esi, dword [esi + 8]
test esi, esi
mov dword [esp + 0x2c], esi
jne 0x4f9d45
mov dword [esp + 0x2c], 0x5ad73f
xor ecx, ecx
or eax, 0xffffffff
push 0x101
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
call fcn.00588cb9
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x1c], eax
mov byte [eax], 0
mov eax, ecx
sub eax, 0x17
add esp, 4
neg eax
sbb eax, eax
and eax, ecx
cmp ecx, 0x17
mov dword [esp + 0x1c], ebp
mov edx, 0x17
je 0x4f9d99
lea edx, [ecx + 1]
cmp eax, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
jge 0x4fa20c
mov edi, eax
jmp 0x4f9dbb
mov ecx, dword [esp + 0x148]
mov ebx, dword [esp + 0x74]
cmp edi, 0x16
mov esi, dword [esp + 0x140]
jne 0x4f9dcf
cmp ecx, edi
jne 0x4fa1f7
mov eax, dword [esp + 0x48]
mov ebp, dword [eax + edi*4]
mov eax, dword [edi*4 + 0x671060]
lea edx, [esp + 0x78]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4f9de3
test esi, esi
je 0x4f9e2e
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4f9df7
lea edi, [esp + 0x78]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4f9e10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
lea ecx, [edi - 0xc]
cmp ecx, 9
mov dword [esp + 0x38], 0
ja 0x4f9e5f
mov eax, dword [ebx + edi*8 + 0x6ac]
test eax, eax
je 0x4f9e4e
cmp byte [eax], 0
jne 0x4f9e50
xor eax, eax
test eax, eax
mov edx, dword [ebx + edi*4 + 0x72c]
mov dword [esp + 0x38], edx
jne 0x4f9e66
mov eax, dword [edi*4 + 0x6710c0]
xor edi, edi
test ebp, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edi
je 0x4f9e87
cmp byte [ebp], 0
je 0x4f9e87
mov edi, 1
mov dword [esp + 0x68], ebp
mov dword [esp + 0x14], edi
xor eax, eax
test ebp, ebp
je 0x4f9f33
push ebp
lea ecx, [esp + 0x1c]
call fcn.00566e70
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4f9ea8
mov ecx, 0x5ad73f
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4f9eb0
sub eax, esi
test eax, eax
jle 0x4f9ed6
lea eax, [eax + ecx - 1]
cmp eax, ecx
jb 0x4f9ed6
cmp byte [eax], 0x5c
je 0x4f9ed6
mov byte [eax], 0
sub eax, 1
cmp eax, ecx
jae 0x4f9ec7
push 0x618414
lea ecx, [esp + 0x1c]
call fcn.00566ee0
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ecx + ebx*4]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4f9ef4
sub eax, esi
add eax, ecx
cmp eax, ecx
jbe 0x4f9f16
cmp byte [eax], 0x5c
je 0x4f9f13
sub eax, 1
cmp eax, ecx
ja 0x4f9f05
jmp 0x4f9f16
add eax, 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00566ee0
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x20]
jne 0x4f9f71
mov eax, 0x5ad73f
jmp 0x4f9f71
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4f9f6d
push 0x618414
lea ecx, [esp + 0x1c]
call fcn.00566e70
mov ecx, esi
call fcn.00401170
push eax
lea ecx, [esp + 0x1c]
call fcn.00566ee0
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x10]
jne 0x4f9f71
mov eax, 0x5ad73f
jmp 0x4f9f71
mov ebx, dword [esp + 0x10]
cmp edi, 3
jge 0x4f9fa7
test eax, eax
je 0x4f9f8a
cmp byte [eax], 0
je 0x4f9f8a
mov dword [esp + edi*4 + 0x68], eax
add edi, 1
mov dword [esp + 0x14], edi
cmp edi, 3
jge 0x4f9fa7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f9fa7
cmp byte [eax], 0
je 0x4f9fa7
mov dword [esp + edi*4 + 0x68], eax
add edi, 1
mov dword [esp + 0x14], edi
cmp ebx, 8
je 0x4f9fbb
cmp ebx, 9
je 0x4f9fbb
cmp ebx, 0xa
je 0x4f9fbb
cmp ebx, 0xb
jne 0x4f9fd8
cmp edi, 3
jge 0x4f9ff1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4f9fd8
cmp byte [eax], 0
je 0x4f9fd8
mov dword [esp + edi*4 + 0x68], eax
add edi, 1
mov dword [esp + 0x14], edi
cmp edi, 3
jge 0x4f9ff1
test esi, esi
je 0x4f9ff1
cmp byte [esi], 0
je 0x4f9ff1
mov dword [esp + edi*4 + 0x68], esi
add edi, 1
mov dword [esp + 0x14], edi
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x4fa0e1
lea ebp, [esp + 0x50]
mov eax, dword [0x679860]
test eax, eax
jne 0x4fa04d
mov eax, 0x5ad73f
mov esi, eax
push 0x5c
push eax
call fcn.0058b4c0
mov ecx, dword [0x679860]
add esp, 8
sub eax, esi
test ecx, ecx
jne 0x4fa02d
mov ecx, 0x5ad73f
mov edi, dword [esp + ebx*4 + 0x68]
push eax
push ecx
push edi
call fcn.0058b371
add esp, 0xc
test eax, eax
jne 0x4fa051
push edi
mov ecx, ebp
call fcn.00566e70
jmp 0x4fa0cc
mov esi, eax
jmp 0x4fa011
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4fa05e
mov eax, 0x5ad73f
push eax
mov ecx, ebp
call fcn.00566e70
push edi
mov ecx, ebp
call fcn.00566ee0
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4fa07a
mov ecx, 0x5ad73f
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4fa080
sub eax, esi
add eax, ecx
cmp eax, ecx
jbe 0x4fa0a2
cmp byte [eax], 0x2e
je 0x4fa09f
sub eax, 1
cmp eax, ecx
ja 0x4fa091
jmp 0x4fa0a2
mov byte [eax], 0
mov edx, dword [esp + 0x34]
push edx
mov ecx, ebp
call fcn.00566ee0
push 0x2e
push edi
call fcn.0058b4c0
add esp, 8
test eax, eax
mov ecx, ebp
je 0x4fa0c2
push eax
jmp 0x4fa0c7
push 0x5d8d78
call fcn.00566ee0
add ebx, 1
add ebp, 8
cmp ebx, dword [esp + 0x14]
jl 0x4fa001
cmp ebx, 3
jge 0x4fa110
mov edi, 3
lea esi, [esp + ebx*8 + 0x50]
sub edi, ebx
lea esp, [esp]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.00566e70
push 0x5d8d78
mov ecx, esi
call fcn.00566ee0
add esi, 8
sub edi, 1
jne 0x4fa0f0
mov edx, dword [esp + 0x60]
test edx, edx
jne 0x4fa11d
mov edx, 0x5ad73f
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x4fa12a
mov ecx, 0x5ad73f
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4fa137
mov eax, 0x5ad73f
mov esi, dword [esp + 0x144]
push esi
push 0
push edx
mov edx, dword [esp + 0x44]
push ecx
push eax
lea ecx, [esp + 0x8c]
call fcn.004f6960
cmp dword [esp + 0x10], 0
jne 0x4fa1f7
cmp dword [esp + 0x13c], 0
je 0x4fa1f7
cmp eax, 2
ja 0x4fa1e6
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4fa17f
mov ecx, 0x5ad73f
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4fa182
mov edx, dword [esp + eax*8 + 0x50]
lea eax, [esp + eax*8 + 0x50]
sub ecx, esi
test edx, edx
mov esi, ecx
jne 0x4fa1a0
mov edx, 0x5ad73f
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4fa1a5
sub eax, edi
cmp eax, esi
jbe 0x4fa1b9
add edx, esi
push edx
jmp 0x4fa1eb
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4fa1c0
sub eax, esi
add eax, edx
cmp eax, edx
jbe 0x4fa1e3
cmp byte [eax], 0x5c
je 0x4fa1e0
sub eax, 1
cmp eax, edx
ja 0x4fa1d1
push eax
jmp 0x4fa1eb
add eax, 1
push eax
jmp 0x4fa1eb
push 0x5ad73f
mov ecx, dword [esp + 0x140]
call fcn.00566e70
mov edi, dword [esp + 0x10]
add edi, 1
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
jl 0x4f9db0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4fa222
mov ecx, dword [0xa1e7e0]
push 0
push eax
call fcn.00536810
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00588796
add esp, 4
lea esi, [esp + 0x68]
mov edi, 2
mov edx, dword [esi - 8]
sub esi, 8
push edx
call fcn.00588796
add esp, 4
sub edi, 1
jns 0x4fa238
mov eax, dword [esp + 0x3c]
push eax
call fcn.00588796
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00588796
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x128
ret 0x10