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

Disassembly:
sub esp, 0x108
mov eax, dword [0x58e710]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
call dword [0x55f3cc]
xor esi, esi
mov edi, eax
cmp edi, esi
mov dword [esp + 0x18], edi
mov dword [0xc29d84], esi
mov dword [esp + 0x10], esi
jle 0x4f24eb
push ebx
mov ebx, dword [0x55f3d0]
push ebp
lea ebp, [esi + 1]
push 0
push 0
push 0
push esi
lea eax, [esp + 0x20]
push eax
call dword [0x55f3d4]
test eax, eax
jne 0x4f24db
mov edx, dword [esp + 0x10]
push 0x30
lea ecx, [esp + 0xe8]
push ecx
push edx
call dword [0x55f3d8]
test eax, eax
je 0x4f2294
mov eax, dword [esp + 0x10]
push eax
call dword [0x55f3dc]
jmp 0x4f24db
xor esi, esi
cmp dword [esp + 0x110], esi
mov dword [esp + 0x14], esi
jle 0x4f24bf
jmp 0x4f22b0
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x48], 0xa8
mov dword [esp + 0x4c], esi
call ebx
test eax, eax
jne 0x4f24ac
mov eax, dword [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x4f24a3
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], 0xa8
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call ebx
test eax, eax
jne 0x4f2493
test dword [esp + 0x4c], 0x80000000
je 0x4f248a
cmp dword [esp + 0x54], 0x1005
je 0x4f234b
mov esi, dword [0x55f0f0]
push 0x562760
lea edx, [esp + 0x78]
push edx
call esi
test eax, eax
je 0x4f234b
push str.CD_Digital
lea eax, [esp + 0x78]
push eax
call esi
test eax, eax
jne 0x4f248a
mov edx, dword [esp + 0x10]
push 2
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x48], 0xa8
call ebx
test eax, eax
jne 0x4f2493
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4f2493
xor ecx, ecx
mov edx, 0x94
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f389a
mov ecx, dword [esp + 0x64]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x48]
push 0
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0x94
mov dword [esp + 0x44], esi
call dword [0x55f3e0]
test eax, eax
je 0x4f23d8
push esi
call fcn.004f37d4
add esp, 4
jmp 0x4f2493
mov edx, dword [esp + 0x30]
xor ecx, ecx
test edx, edx
jle 0x4f2481
lea eax, [esi + 8]
lea esp, [esp]
cmp dword [eax], 0x50030001
je 0x4f2405
add ecx, ebp
add eax, 0x94
cmp ecx, edx
jl 0x4f23f0
jmp 0x4f2481
mov edx, dword [0xc29d84]
imul ecx, ecx, 0x94
mov eax, dword [esp + 0x18]
mov dword [edx*4 + 0xc29ab8], eax
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0xc294b8]
mov dword [eax], 0x18
mov ebx, dword [ecx + esi + 4]
add ecx, esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov ecx, dword [ecx + 0x10]
push 0
lea edx, [edx*4 + 0xc293b8]
push eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 4
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x18]
push eax
call dword [0x55f3e4]
mov ebx, dword [0x55f3d0]
test eax, eax
jne 0x4f2481
mov eax, dword [0xc29d84]
mov ecx, dword [eax*4 + 0xc293b8]
mov dword [eax*4 + 0xc292b8], ecx
add eax, ebp
mov dword [0xc29d84], eax
push esi
call fcn.004f37d4
add esp, 4
cmp dword [0xc29d84], 0x40
jge 0x4f24bf
mov esi, dword [esp + 0x14]
add edi, ebp
cmp edi, dword [esp + 0x1c]
jl 0x4f22e4
cmp dword [0xc29d84], 0x40
jge 0x4f24bf
add esi, ebp
cmp esi, dword [esp + 0x110]
mov dword [esp + 0x14], esi
jl 0x4f22b0
mov edx, dword [esp + 0x10]
push edx
call dword [0x55f3dc]
cmp dword [0xc29d84], 0x40
jge 0x4f24e9
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add esi, ebp
cmp esi, edi
mov dword [esp + 0x18], esi
jl 0x4f2251
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.004f3f55
add esp, 0x108
ret