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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4b4f48
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b55e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x6c]
call fcn.004b3db4
cmp byte [ebx + 0x60], 0
jne 0x4b4f90
mov eax, dword [ebx + 0x6c]
call fcn.0041d074
test eax, eax
jne 0x4b4f87
mov dl, 2
mov eax, ebx
call fcn.004b616c
jmp 0x4b4f90
mov dl, 1
mov eax, ebx
call fcn.004b616c
mov eax, dword [ebx + 0x6c]
call fcn.0041d074
mov esi, eax
sub esi, 1
jno 0x4b4fa4
call fcn.00404884
test esi, esi
jl 0x4b5076
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004b3ecc
mov edx, dword [eax + 0x10]
lea eax, [ebp - 8]
call fcn.0040594c
cmp dword [ebp - 8], 0
je 0x4b506e
cmp byte [ebx + 0x60], 1
jne 0x4b5032
push 0
mov eax, 0x4b5600
mov dword [ebp - 0x28], eax
mov eax, 0x4b5610
mov dword [ebp - 0x24], eax
mov eax, 0x4b5620
mov dword [ebp - 0x20], eax
mov eax, 0x4b5630
mov dword [ebp - 0x1c], eax
mov eax, 0x4b5640
mov dword [ebp - 0x18], eax
mov eax, 0x4b565c
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x28]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.00481f84
inc eax
jne 0x4b506e
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004b3ecc
add eax, 0x10
mov edx, 0x4b5630
call fcn.00405908
jmp 0x4b506e
push 0
mov eax, 0x4b5670
mov dword [ebp - 0x30], eax
mov eax, 0x4b567c
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00481f84
inc eax
jne 0x4b506e
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004b3ecc
add eax, 0x10
mov edx, 0x4b5670
call fcn.00405908
inc edi
dec esi
jne 0x4b4faf
mov eax, dword [ebx + 0x6c]
call fcn.0041d074
test eax, eax
jle 0x4b50bd
cmp dword [ebx + 0x48], 0
je 0x4b50bd
push 0
mov eax, 0x4b5600
mov dword [ebp - 0x3c], eax
mov eax, 0x4b5610
mov dword [ebp - 0x38], eax
mov eax, 0x4b5620
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x3c]
mov ecx, 2
mov eax, dword [ebx + 0x48]
call fcn.00481f84
inc eax
jne 0x4b50bd
lea eax, [ebx + 0x48]
call fcn.004058b4
cmp byte [ebx + 0x60], 1
jne 0x4b5152
mov eax, dword [ebx + 0x70]
call fcn.004b4890
lea edx, [ebp - 0xc]
mov eax, dword [0x4ae75c]
call fcn.004ae938
or ecx, 0xffffffff
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x70]
call fcn.004b4b30
mov eax, dword [ebx + 0x44]
call fcn.00405b84
test eax, eax
jne 0x4b5145
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 0x2c], 1
jle 0x4b5123
cmp dword [eax + 0x20], 0
jle 0x4b5114
lea eax, [ebx + 0x44]
mov edx, 0x4b5688
call fcn.00405908
jmp 0x4b5145
lea eax, [ebx + 0x44]
mov edx, 0x4b56a0
call fcn.00405908
jmp 0x4b5145
cmp dword [eax + 0x20], 0
jle 0x4b5138
lea eax, [ebx + 0x44]
mov edx, 0x4b5688
call fcn.00405908
jmp 0x4b5145
lea eax, [ebx + 0x44]
mov edx, 0x4b56c0
call fcn.00405908
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x24]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 4]
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.004b61c4
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0xc0]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebx + 0x60], 1
jne 0x4b5189
mov eax, dword [ebx + 0x6c]
call fcn.0041d074
dec eax
jne 0x4b5189
mov eax, ebx
call fcn.004b4e8c
test al, al
jne 0x4b518d
xor eax, eax
jmp 0x4b518f
mov al, 1
mov byte [ebx + 0xc6], al
mov esi, dword [ebx + 0xc0]
push 1
push 0
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0x64]
call fcn.0049cb18
mov ecx, dword [ebp - 0x40]
mov edx, 0x4b56d4
mov eax, esi
call fcn.0049932c
mov eax, dword [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
movzx ecx, byte [ebp - 0xd]
xor edx, edx
mov eax, dword [ebx + 0x90]
call fcn.0049d294
mov ecx, dword [ebp - 0x44]
mov edx, 0x4b56e4
mov eax, esi
call fcn.0049932c
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0x98]
call fcn.0049cb18
mov ecx, dword [ebp - 0x48]
mov edx, 0x4b56f4
mov eax, esi
call fcn.0049932c
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0x40]
call fcn.0049cb18
mov ecx, dword [ebp - 0x4c]
mov edx, 0x4b5700
mov eax, esi
call fcn.0049932c
cmp byte [ebx + 0xc5], 0
jne 0x4b525b
xor ecx, ecx
mov edx, 0x4b570c
mov eax, esi
call fcn.0049932c
jmp 0x4b5283
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0x34]
call fcn.0049cb18
mov ecx, dword [ebp - 0x50]
mov edx, 0x4b570c
mov eax, esi
call fcn.0049932c
lea edx, [ebp - 0x54]
mov eax, dword [ebx + 0x78]
call fcn.0041d94c
mov ecx, dword [ebp - 0x54]
mov edx, 0x4b5718
mov eax, esi
call fcn.0049932c
cmp byte [ebx + 0x60], 1
jne 0x4b53b8
cmp byte [ebx + 0xc6], 0
je 0x4b52f0
mov ecx, 0x4b572c
mov edx, 0x4b5738
mov eax, esi
call fcn.0049932c
xor ecx, ecx
mov edx, 0x4b5750
mov eax, esi
call fcn.0049932c
xor ecx, ecx
mov edx, 0x4b5768
mov eax, esi
call fcn.0049932c
xor ecx, ecx
mov edx, 0x4b578c
mov eax, esi
call fcn.0049932c
jmp 0x4b53d6
mov ecx, dword [ebx + 0x44]
mov edx, 0x4b5750
mov eax, esi
call fcn.0049932c
cmp dword [ebx + 0x3c], 0
jbe 0x4b534f
lea ecx, [ebp - 0x5c]
mov edx, 0x4b5750
mov eax, esi
call fcn.00499118
push dword [ebp - 0x5c]
push 0x4b57a8
push 0x4b57b4
push 0x4b57c0
push 0x4b57cc
push dword [ebx + 0x3c]
push 0x4b57e0
lea eax, [ebp - 0x58]
mov edx, 7
call fcn.00405c48
mov ecx, dword [ebp - 0x58]
mov edx, 0x4b5750
mov eax, esi
call fcn.0049932c
mov eax, dword [ebx + 0x6c]
call fcn.0041d074
test eax, eax
jle 0x4b5396
lea ecx, [ebp - 0x64]
mov edx, 0x4b5750
mov eax, esi
call fcn.00499118
push dword [ebp - 0x64]
push 0x4b57ec
push dword [ebp - 0xc]
push 0x4b57e0
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00405c48
mov ecx, dword [ebp - 0x60]
mov edx, 0x4b5750
mov eax, esi
call fcn.0049932c
mov ecx, 0x4b572c
mov edx, 0x4b5738
mov eax, esi
call fcn.0049932c
mov ecx, dword [ebx + 0x48]
mov edx, 0x4b5768
mov eax, esi
call fcn.0049932c
jmp 0x4b53d6
mov ecx, dword [ebx + 0x48]
mov edx, 0x4b5768
mov eax, esi
call fcn.0049932c
mov ecx, dword [ebx + 0x44]
mov edx, 0x4b5750
mov eax, esi
call fcn.0049932c
lea edx, [ebp - 0x68]
mov eax, dword [ebx + 0xa8]
call fcn.00499c04
mov ecx, dword [ebp - 0x68]
mov edx, 0x4b5804
mov eax, esi
call fcn.0049932c
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0xa4]
call fcn.0049cb18
mov ecx, dword [ebp - 0x6c]
mov edx, 0x4b5814
mov eax, esi
call fcn.0049932c
mov eax, dword [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0x70]
push eax
movzx ecx, byte [ebp - 0xd]
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.0049d294
mov ecx, dword [ebp - 0x70]
mov edx, 0x4b5828
mov eax, esi
call fcn.0049932c
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebx + 0x94]
call fcn.0049c17c
mov ecx, dword [ebp - 0x74]
mov edx, 0x4b5840
mov eax, esi
call fcn.0049932c
mov ecx, dword [ebx + 0x9c]
mov edx, 0x4b5864
mov eax, esi
call fcn.0049932c
mov eax, ebx
call fcn.004b6104
test al, al
je 0x4b54b9
call fcn.0040d0e0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.00483b9c
mov ecx, dword [ebp - 0x78]
mov edx, 0x4b5878
mov eax, esi
call fcn.0049932c
jmp 0x4b54d8
push dword [ebx + 0x54]
push dword [ebx + 0x50]
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00483b9c
mov ecx, dword [ebp - 0x7c]
mov edx, 0x4b5878
mov eax, esi
call fcn.0049932c
cmp byte [ebx + 0x8c], 2
je 0x4b550b
lea edx, [ebp - 0x80]
movzx eax, byte [ebx + 0x8c]
add eax, 1
jno 0x4b54f5
call fcn.00404884
call fcn.0040a848
mov ecx, dword [ebp - 0x80]
mov edx, 0x4b5888
mov eax, esi
call fcn.0049932c
jmp 0x4b5530
mov edx, 0x4b5888
mov eax, esi
call fcn.0049929c
test eax, eax
jl 0x4b5530
mov edx, 0x4b5888
mov eax, esi
call fcn.0049929c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4b5546
mov edx, dword [ebx + 0x5c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea edx, [ebp - 0x84]
mov eax, ebx
call fcn.004b6264
cmp dword [ebp - 0x84], 0
jne 0x4b559d
lea ecx, [ebp - 0x88]
mov edx, 0x4b589c
mov eax, esi
call fcn.00499118
cmp dword [ebp - 0x88], 0
je 0x4b55bc
lea ecx, [ebp - 0x8c]
mov edx, 0x4b589c
mov eax, esi
call fcn.00499118
mov ecx, dword [ebp - 0x8c]
mov edx, 0x4b58b0
mov eax, esi
call fcn.0049932c
jmp 0x4b55bc
lea edx, [ebp - 0x90]
mov eax, ebx
call fcn.004b6264
mov ecx, dword [ebp - 0x90]
mov edx, 0x4b58b0
mov eax, esi
call fcn.0049932c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b55ee
lea eax, [ebp - 0x90]
mov edx, 0x15
call fcn.004058d8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004058d8
ret