Function at 0x4f077c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4f0785
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404128
mov eax, dword [ebp - 8]
call fcn.00404128
xor eax, eax
push ebp
push 0x4f0eac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d2f10]
cmp dword [eax], 0x20
jae 0x4f07d1
mov eax, 0x4f0ec4
call fcn.0045934c
jmp 0x4f0e67
push 0x4f0ee0
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d3170]
mov dword [eax], esi
mov eax, dword [0x5d3170]
test esi, esi
je 0x4f07fe
mov eax, dword [0x5d3170]
mov eax, dword [eax]
call eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00408fb8
cmp dword [ebp - 0x18], 0
jne 0x4f0824
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408fb8
cmp dword [ebp - 0x1c], 0
je 0x4f09cf
push 0x4f0ee0
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d3170]
mov dword [eax], esi
mov eax, dword [0x5d3170]
test esi, esi
je 0x4f0851
mov eax, dword [0x5d3170]
mov eax, dword [eax]
call eax
push 0x4f0ef0
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2c7c]
mov dword [eax], esi
mov eax, dword [0x5d2c7c]
test esi, esi
je 0x4f09cf
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x2dc]
call fcn.00434234
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00408fb8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f04
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x530]
call fcn.00434234
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00408fb8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f20
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x2ec]
call fcn.00434234
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00408fb8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f40
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x2f0]
call fcn.00434234
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00408fb8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f5c
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x53c]
call fcn.00434234
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00408fb8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f78
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0f88
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
push 1
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.004044bc
mov eax, dword [ebp - 0x20]
push eax
push 0x4f0fb0
mov eax, dword [0x5d2c7c]
mov eax, dword [eax]
call eax
mov eax, dword [ebx + 0x42c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov eax, dword [ebx + 0x434]
mov edx, dword [eax]
call dword [edx + 0xd0]
push 0x4f0fcc
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2bfc]
mov dword [eax], esi
mov eax, dword [0x5d2bfc]
test esi, esi
je 0x4f0e67
mov eax, dword [ebx + 0x498]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4f0a31
mov dword [ebx + 0x5bc], 1
jmp 0x4f0a39
xor eax, eax
mov dword [ebx + 0x5bc], eax
cmp dword [ebp + 8], 1
jne 0x4f0a46
mov esi, 0x1a
jmp 0x4f0a4b
mov esi, 0x1b
mov eax, dword [ebx + 0x5bc]
push eax
push esi
mov eax, dword [0x5d2bfc]
mov eax, dword [eax]
call eax
cmp al, 1
jne 0x4f0e57
push 0x4f0fd4
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d3034]
mov dword [eax], esi
mov eax, dword [0x5d3034]
test esi, esi
je 0x4f0b44
push 1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x5d3034]
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.00403f3c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x42c]
call fcn.00434264
mov eax, dword [ebx + 0x5b4]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4f0ae8
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x42c]
call fcn.00434234
mov ecx, dword [ebp - 0x24]
mov eax, dword [0x5d298c]
mov eax, dword [eax]
mov edx, 0x4f0fec
call fcn.005c8cdc
push 2
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x5d3034]
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.00403f3c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x434]
call fcn.00434264
mov eax, dword [ebx + 0x5b4]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4f0b44
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x434]
call fcn.00434234
mov ecx, dword [ebp - 0x24]
mov eax, dword [0x5d298c]
mov eax, dword [eax]
mov edx, 0x4f1014
call fcn.005c8cdc
push 0x4f1034
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2fcc]
mov dword [eax], esi
mov eax, dword [0x5d2fcc]
test esi, esi
je 0x4f0e67
mov eax, dword [ebx + 0x438]
mov eax, dword [eax + 0x22c]
dec eax
test eax, eax
jl 0x4f0bba
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x438]
mov esi, dword [eax + 0x1fc]
dec esi
test esi, esi
jl 0x4f0bb2
inc esi
xor edi, edi
push 0
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, dword [ebx + 0x438]
call fcn.0047c2bc
inc edi
dec esi
jne 0x4f0b9c
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x4f0b88
mov edx, 2
mov eax, dword [ebx + 0x438]
call fcn.0047a028
mov edx, 1
mov eax, dword [ebx + 0x438]
call fcn.00479ca0
push 1
push 0
push 0
push 1
mov eax, dword [0x5d2fcc]
mov eax, dword [eax]
call eax
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403edc
mov eax, dword [ebp - 0x18]
call fcn.0040919c
mov esi, eax
lea edx, [ebp - 0x18]
mov eax, esi
dec eax
call fcn.00409138
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x534]
call fcn.00434264
push 1
push 0
push 0
push 2
mov eax, dword [0x5d2fcc]
mov eax, dword [eax]
call eax
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403edc
mov eax, dword [ebp - 0x18]
call fcn.0040919c
mov dword [ebp - 0x10], eax
test esi, esi
jle 0x4f0cc1
cmp dword [ebp - 0x10], 0
jle 0x4f0cc1
mov edx, esi
mov eax, dword [ebx + 0x438]
call fcn.0047a028
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x438]
call fcn.00479ca0
dec esi
test esi, esi
jl 0x4f0cba
inc esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x4f0cb2
inc esi
xor edi, edi
push 1
push edi
mov eax, dword [ebp - 0xc]
push eax
push 3
mov eax, dword [0x5d2fcc]
mov eax, dword [eax]
call eax
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403edc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, dword [ebx + 0x438]
call fcn.0047c2bc
inc edi
dec esi
jne 0x4f0c7e
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x4f0c73
mov eax, ebx
call fcn.004e09b8
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 3
mov eax, dword [ebx + 0x438]
call fcn.0047c244
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x364]
call fcn.00434264
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 4
mov eax, dword [ebx + 0x438]
call fcn.0047c244
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x360]
call fcn.00434264
cmp dword [ebp + 8], 1
jne 0x4f0e67
xor edx, edx
mov eax, dword [ebx + 0x2cc]
call fcn.00434264
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x438]
call fcn.0047c244
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 2
mov eax, dword [ebx + 0x438]
call fcn.0047c244
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00403f7c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x2d0]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x2d4]
call fcn.00434264
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 1
mov edx, 6
mov eax, dword [ebx + 0x438]
call fcn.0047c244
mov eax, dword [ebp - 0x28]
mov ecx, 6
mov edx, 1
call fcn.00404178
push dword [ebp - 0x1c]
push 0x4f104c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 6
mov eax, dword [ebx + 0x438]
call fcn.0047c244
mov eax, dword [ebp - 0x2c]
mov ecx, 7
mov edx, 7
call fcn.00404178
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404034
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x2d8]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.00434264
mov edx, 0x4f1058
mov eax, dword [ebx + 0x300]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x304]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.00434264
xor edx, edx
mov eax, dword [ebx + 0x2fc]
call fcn.00434264
jmp 0x4f0e67
mov edx, 0x4f106c
mov eax, dword [ebx + 0x4f4]
call fcn.00434264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0eb3
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403d1c
lea eax, [ebp - 0x24]
call fcn.00403cf8
lea eax, [ebp - 0x20]
call fcn.004043b4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403d1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403d1c
ret