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

Disassembly:
push 0xffffffffffffffff
push 0x500608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x18]
mov ecx, dword [esi + 0x30]
push edi
lea edi, [esi + 0x18]
and al, 0xf0
movzx eax, al
cdq
shld edx, eax, 0x1c
shl eax, 0x1c
xor ebx, ebx
add ecx, eax
adc ebx, edx
mov edx, dword [esi + 0x9c]
push edx
push ebx
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
call fcn.004c4610
mov dword [esi + 0x98], eax
mov al, byte [edi]
and al, 0xf
add esp, 0xc
cmp al, 1
jne 0x4c6e82
push esi
call fcn.0047d8a0
mov eax, dword [esi + 0x78]
add esp, 4
test eax, eax
jne 0x4c6e6c
add esi, 4
push esi
call fcn.0047d8a0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
mov cl, byte [edi]
and cl, 0xf0
movzx eax, cl
mov ecx, dword [edi + 0x18]
cdq
shld edx, eax, 0x1c
shl eax, 0x1c
xor ebx, ebx
add ecx, eax
adc ebx, edx
or ecx, ebx
jne 0x4c6f2e
mov eax, dword [esi]
mov edx, dword [esi + 0x38]
push 0
lea edi, [esi + 0x38]
push 0x1002
push eax
mov ecx, edi
call dword [edx + 0x20]
test eax, eax
je 0x4c6ed8
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x3c]
push eax
push ecx
push esi
push edx
call fcn.004c5e40
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
call dword [eax + 0x4c]
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4c6f18
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x48]
push 0
lea ebx, [esi + 4]
lea edi, [esi + 0x48]
push 0x1002
push eax
mov ecx, edi
call dword [edx + 0x20]
test eax, eax
je 0x4c6f18
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x4c]
push eax
push ecx
push ebx
push edx
call fcn.004c5e40
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
call dword [eax + 0x4c]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004c6110
test eax, eax
je 0x4c6f18
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x38]
push ebp
push 0
lea ebp, [esi + 0x38]
push 2
push eax
mov ecx, ebp
call dword [edx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x78]
test eax, eax
mov dword [esp + 0x10], 0
jne 0x4c6f86
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [esi + 0x48]
push 2
push eax
call dword [edx + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x10]
push eax
call fcn.004c5cd0
add esp, 4
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x58]
push 0
lea ebx, [esi + 0x58]
push 2
push eax
mov ecx, ebx
call dword [edx + 0x20]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4c70e5
test eax, eax
je 0x4c70d9
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esi + 0x70], 1
call dword [eax + 0x30]
mov ecx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00486150
cmp dword [esp + 0x14], eax
jne 0x4c70d9
cmp dword [esp + 0x18], edx
jne 0x4c70d9
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x30]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x18], edx
xor edx, edx
cmp eax, ecx
jne 0x4c70d9
cmp dword [esp + 0x18], edx
jne 0x4c70d9
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4c709a
mov dword [esi + 0x84], 1
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4c7130
mov ecx, dword [esi + 0x98]
push ecx
call fcn.004e50fe
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [esi + 0x98]
add esp, 4
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call dword [edx + 0x34]
mov eax, dword [esi + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebx
jbe 0x4c7264
mov ebp, dword [esp + 0x40]
cmp byte [ebx + edi], 0x31
je 0x4c722e
mov edi, dword [esi + 0x34]
push 4
add edi, ebx
call fcn.004e50ce
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c719d
mov ecx, dword [esp + 0x38]
push edi
call fcn.0041f4f0
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x4c719f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c70d9
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
call dword [eax + 0x30]
mov ecx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00486150
cmp dword [esp + 0x14], eax
jne 0x4c70d9
cmp dword [esp + 0x18], edx
jne 0x4c70d9
mov eax, 1
mov dword [esi + 0x84], eax
mov dword [esi + 0x74], eax
jmp 0x4c701d
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x4c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c70f0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c7101
mov edx, dword [esi + 0x48]
lea ecx, [esi + 0x48]
call dword [edx + 0x4c]
lea eax, [esi + 8]
push eax
mov dword [esi + 0x70], 0
call fcn.004c5cd0
lea eax, [esi + 0x14]
push eax
call fcn.004c5cd0
mov eax, dword [esi + 0x78]
add esp, 8
test eax, eax
jne 0x4c7130
lea eax, [esi + 0xc]
push eax
call fcn.004c5cd0
add esp, 4
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [esp + 0x24]
adc ecx, edx
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x98]
test eax, eax
mov dword [esp + 0x40], 0
jbe 0x4c72ce
mov ebp, dword [esp + 0x44]
mov edi, dword [esi + 0x34]
mov eax, dword [esp + 0x40]
push 4
add edi, eax
call fcn.004e50ce
add esp, 4
test eax, eax
je 0x4c7279
mov ecx, dword [esp + 0x38]
cmp edi, dword [ecx]
jae 0x4c726f
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
mov dword [eax], edx
mov ebx, eax
jmp 0x4c727b
xor ebx, ebx
push edi
lea ecx, [esi + 0xb4]
call fcn.004c6510
mov ecx, dword [esp + 0x3c]
push edi
mov dword [eax], ebx
call fcn.004bb040
mov eax, dword [esp + 0x44]
inc dword [eax]
mov eax, dword [esi + 0x98]
cmp eax, 1
jne 0x4c71e2
mov edi, dword [ebp]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x24]
add edi, edx
adc ecx, eax
mov dword [ebp], edi
mov dword [ebp + 4], ecx
jmp 0x4c722a
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x4c7213
mov edx, dword [esi + 0x9c]
mov ecx, dword [esp + 0x20]
imul edx, eax
mov edi, dword [ebp]
xor eax, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
sbb edx, eax
mov eax, dword [ebp + 4]
add edi, ecx
mov dword [ebp], edi
adc eax, edx
jmp 0x4c7227
mov eax, dword [esi + 0x9c]
mov ecx, dword [ebp]
add ecx, eax
mov eax, dword [ebp + 4]
mov dword [ebp], ecx
adc eax, 0
mov dword [ebp + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb0]
test ecx, ecx
je 0x4c724d
xor edx, edx
mov eax, ebx
div dword [esi + 0xac]
test edx, edx
jne 0x4c724d
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x98]
mov edi, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jb 0x4c7064
push edi
call fcn.004e50f9
add esp, 4
jmp 0x4c72d5
xor ecx, ecx
mov edx, dword [ecx]
mov dword [eax], edx
mov ebx, eax
jmp 0x4c727b
xor ebx, ebx
push edi
lea ecx, [esi + 0xb4]
call fcn.004c6510
mov ecx, dword [esp + 0x3c]
push edi
mov dword [eax], ebx
call fcn.004bb040
inc dword [ebp]
mov ecx, dword [esi + 0xb0]
test ecx, ecx
je 0x4c72b7
mov eax, dword [esp + 0x40]
xor edx, edx
div dword [esi + 0xac]
test edx, edx
jne 0x4c72b7
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x98]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jb 0x4c7164
mov dword [esi + 0x7c], 1
mov eax, dword [esi + 0xc0]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0xec], eax
mov eax, ebx
test eax, eax
pop ebp
jbe 0x4c72f0
mov edi, dword [esi + 0x20]
jmp 0x4c72f2
xor edi, edi
call fcn.004e5159
push eax
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.00407b90
mov edi, dword [esi + 0x34]
mov ebx, dword [esi + 0xc0]
push 0x15a
push str.WorkNbms_bar_trunkCommFilePkgTransFile.cpp
mov dword [esp + 0x34], 0
call fcn.00407270
mov ecx, eax
call fcn.0040a520
mov eax, dword [esi + 0x98]
mov esi, dword [esp + 0x34]
push edi
push ebx
push eax
push esi
push str.TransFileMgr_CalcDown_FileName__s__BlockCnt_d_NeedDownCnt_d_BeginId_d.
push 0x10
call fcn.0047fc80
lea eax, [esi - 0x10]
add esp, 0x18
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10