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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a8a20
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x4b2a3f
xor eax, eax
mov dword [esp + 0x28], vtable.CArray_struct_TGFileItem___struct_TGFileItem__.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], ebx
mov ecx, dword [edi + 8]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
jle 0x4b2345
lea ecx, [esp + 0x3c]
call fcn.0055d17f
test ebx, ebx
mov byte [esp + 0x70], 1
jl 0x4b25cb
cmp ebx, dword [edi + 8]
jge 0x4b25cb
mov eax, dword [edi + 4]
lea ecx, [ebx*4]
add eax, ecx
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
call fcn.0055d4af
cmp dword [esp + 0x44], 0
jle 0x4b25cb
mov ecx, dword [0x63c664]
mov edx, dword [esp + 0x40]
push ecx
push str._TGMusic
push edx
call fcn.00414390
cmp dword [esp + 0x44], 0
jle 0x4b25cb
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
push 1
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.0044bb10
mov eax, dword [esp + 0x50]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x4b2321
test esi, esi
jl 0x4b25cb
cmp esi, eax
jge 0x4b25cb
mov edx, dword [esp + 0x40]
lea eax, [edx + esi*4]
push 0x5d616c
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00401ba0
add esp, 0xc
mov ecx, dword [ebp + 8]
push eax
push ecx
mov byte [esp + 0x78], 2
call fcn.004b2b40
mov edi, eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b22d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.004b39b0
test edi, edi
je 0x4b230f
cmp dword [edi + 0xc], 0
jle 0x4b230f
mov ecx, dword [ebp + 0xc]
cmp ebx, dword [ecx + 8]
jge 0x4b25cb
mov eax, dword [esp + 0x14]
mov edx, ecx
mov ecx, dword [edx + 4]
add eax, eax
add eax, eax
mov ebx, dword [ecx + eax]
add ecx, eax
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004b2a60
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add esi, 1
cmp esi, eax
jl 0x4b2272
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d21d
add ebx, 1
cmp ebx, dword [edi + 8]
mov dword [esp + 0x14], ebx
jl 0x4b21e6
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp dword [edi + 0x14], ebx
je 0x4b29b6
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
mov ecx, 0x5f821c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b2386
cmp dx, bx
je 0x4b2382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b2386
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4b2360
xor eax, eax
jmp 0x4b238b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea ecx, [esp + 0x3c]
jne 0x4b26c3
call fcn.0055d752
mov esi, vtable.CUIntArrayEx.0
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 3
call fcn.0055d752
mov dword [esp + 0x50], esi
mov byte [esp + 0x70], 4
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x44]
call fcn.00576d2e
xor ebx, ebx
xor eax, eax
cmp esi, ebx
jle 0x4b23f4
cmp eax, ebx
jl 0x4b25cb
cmp eax, dword [esp + 0x44]
jge 0x4b25cb
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax*4], eax
add eax, 1
cmp eax, esi
jl 0x4b23d4
mov ecx, dword [0x635b3c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
jne 0x4b240f
push 0x80004005
call fcn.00401f90
mov eax, dword [edi + 0x20]
add edi, 0x20
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b243b
cmp dx, bx
je 0x4b2437
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b243b
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4b2415
xor eax, eax
jmp 0x4b2440
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4b24f4
mov edx, dword [ebp + 0xc]
fld qword [edx + 0x18]
call fcn.0057e5f0
push eax
lea eax, [esp + 0x40]
push eax
lea edi, [esp + 0x58]
call fcn.0047d2c0
mov ecx, dword [esp + 0x58]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x4b26a2
jmp 0x4b2484
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4b25cb
cmp eax, ecx
jge 0x4b25cb
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + eax*4]
test eax, eax
jl 0x4b25cb
cmp eax, dword [esp + 0x30]
jge 0x4b25cb
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x2c]
mov ebx, dword [ecx + 8]
test ebx, ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 0x18], eax
jl 0x4b25cb
lea edi, [ebx + 1]
mov esi, ecx
call fcn.00541660
mov ecx, dword [esp + 0x18]
mov edx, esi
mov eax, dword [edx + 4]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4b2480
jmp 0x4b26a2
mov edx, dword [0x635b40]
push edx
mov ecx, edi
call fcn.004043e0
test eax, eax
jne 0x4b25d0
lea ecx, [esp + 0x3c]
call fcn.0047d400
fldz
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b26a0
mov esi, dword [ebp + 0x10]
jmp 0x4b2534
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4b25c9
cmp ecx, eax
jge 0x4b25c9
mov edi, dword [esp + 0x40]
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25c9
mov ebx, dword [esp + 0x30]
cmp eax, ebx
jge 0x4b25c9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + eax*4]
fiadd dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0x1c]
fld qword [eax + 0x18]
fmul qword [0x606928]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b26a2
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25cb
cmp eax, ebx
jge 0x4b25cb
mov ebx, dword [esi + 8]
test ebx, ebx
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x18], ecx
jl 0x4b25cb
lea edi, [ebx + 1]
call fcn.00541660
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x44]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4b2530
jmp 0x4b26a2
fstp st(0)
call fcn.00555520
mov ecx, dword [0x635b44]
push ecx
mov ecx, edi
call fcn.004043e0
test eax, eax
jne 0x4b26a2
lea ecx, [esp + 0x3c]
call fcn.0047d400
fldz
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b26a0
mov esi, dword [ebp + 0x10]
jmp 0x4b260a
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4b25c9
cmp ecx, eax
jge 0x4b25c9
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ecx*4]
test eax, eax
jl 0x4b25c9
mov edi, dword [esp + 0x30]
cmp eax, edi
jge 0x4b25c9
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax*4]
fiadd dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0x1c]
fld qword [eax + 0x18]
fmul qword [0x606920]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b26a2
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
test eax, eax
jl 0x4b25cb
cmp eax, edi
jge 0x4b25cb
mov ebx, dword [esi + 8]
test ebx, ebx
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x18], ecx
jl 0x4b25cb
lea edi, [ebx + 1]
call fcn.00541660
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x44]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4b2606
jmp 0x4b26a2
fstp st(0)
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 3
call fcn.0055d769
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d769
jmp 0x4b2a10
call fcn.0055d752
lea ecx, [esp + 0x3c]
push ecx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.004b4bf0
mov ecx, dword [0x635b3c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
jne 0x4b26f7
push 0x80004005
call fcn.00401f90
mov eax, dword [edi + 0x20]
add edi, 0x20
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b2726
cmp dx, bx
je 0x4b2722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b2726
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4b2700
xor eax, eax
jmp 0x4b272b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4b27d2
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], eax
jle 0x4b29a6
jmp 0x4b2754
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4b25cb
cmp eax, ecx
jge 0x4b25cb
mov edx, dword [esp + 0x40]
mov eax, dword [edx + eax*4]
test eax, eax
jl 0x4b25cb
cmp eax, dword [esp + 0x30]
jge 0x4b25cb
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
test ebx, ebx
mov dword [esp + 0x18], edx
jl 0x4b25cb
lea edi, [ebx + 1]
mov esi, eax
call fcn.00541660
mov eax, dword [esp + 0x18]
mov ecx, esi
mov edx, dword [ecx + 4]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4b2750
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d769
jmp 0x4b2a10
mov ecx, dword [0x635b40]
push ecx
mov ecx, edi
call fcn.004043e0
test eax, eax
jne 0x4b28bb
mov eax, dword [esp + 0x44]
fldz
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b29a4
mov esi, dword [ebp + 0x10]
jmp 0x4b2804
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4b25c9
cmp ecx, eax
jge 0x4b25c9
mov edi, dword [esp + 0x40]
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25c9
mov ebx, dword [esp + 0x30]
cmp eax, ebx
jge 0x4b25c9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + eax*4]
fiadd dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0x1c]
fld qword [eax + 0x18]
fmul qword [0x606928]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b29a6
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25cb
cmp eax, ebx
jge 0x4b25cb
mov ebx, dword [esi + 8]
test ebx, ebx
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x18], ecx
jl 0x4b25cb
lea edi, [ebx + 1]
call fcn.00541660
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x44]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4b2800
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d769
jmp 0x4b2a10
mov ecx, dword [0x635b44]
push ecx
mov ecx, edi
call fcn.004043e0
test eax, eax
jne 0x4b29a6
mov eax, dword [esp + 0x44]
fldz
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b29a4
mov esi, dword [ebp + 0x10]
jmp 0x4b28f4
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4b25c9
cmp ecx, eax
jge 0x4b25c9
mov edi, dword [esp + 0x40]
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25c9
mov ebx, dword [esp + 0x30]
cmp eax, ebx
jge 0x4b25c9
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + eax*4]
fiadd dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0x1c]
fld qword [eax + 0x18]
fmul qword [0x606920]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b29a6
mov eax, dword [edi + ecx*4]
test eax, eax
jl 0x4b25cb
cmp eax, ebx
jge 0x4b25cb
mov ebx, dword [esi + 8]
test ebx, ebx
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x18], ecx
jl 0x4b25cb
lea edi, [ebx + 1]
call fcn.00541660
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + ebx*4], eax
mov eax, dword [esp + 0x44]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4b28f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d769
jmp 0x4b2a10
fstp st(0)
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
call fcn.0055d769
jmp 0x4b2a10
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b2a12
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x4b25cb
cmp ecx, eax
jge 0x4b25cb
mov edx, dword [esp + 0x2c]
mov ebx, dword [esi + 8]
test ebx, ebx
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x18], eax
jl 0x4b25cb
lea edi, [ebx + 1]
call fcn.00541660
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov dword [ecx + ebx*4], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4b29c1
xor ebx, ebx
mov eax, dword [0x63c450]
push 1
push ebx
push ebx
add eax, 0x18f4
push eax
call fcn.0049f9d0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x28], vtable.CArray_struct_TGFileItem___struct_TGFileItem__.0
je 0x4b2a3f
push eax
call fcn.0055517b
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc