Function at 0x5901f040
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5914cb99
push eax
mov eax, dword [esp + 0x24]
mov dword fs:[0], esp
sub esp, 0xcc
test eax, eax
je 0x5901f069
mov dword [eax], 0
push ebx
push ebp
mov ebp, dword [esp + 0xe4]
push esi
test ebp, ebp
push edi
je 0x5901faef
mov esi, dword [esp + 0xf0]
test esi, esi
je 0x5901faef
push 0x591892bc
push esi
push ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x58], esi
call fcn.5900f930
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x5901faef
mov edi, 0x591892bc
or ecx, 0xffffffff
xor eax, eax
push 0x591892bc
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
sub esi, ebx
add ebp, ebx
push esi
push ebp
mov dword [esp + 0xf8], ebp
call fcn.5900f930
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5901faef
mov edi, 0x591892bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xec]
not ecx
dec ecx
add ebp, ecx
lea ecx, [esp + 0x1c]
sub esi, ebp
add eax, ebp
push esi
push eax
mov dword [esp + 0xf4], eax
call fcn.590a0970
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe4], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5901fadb
mov ecx, dword [0x59162880]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x2c]
push 0x59188924
push str.sid
push ebx
lea edx, [esp + 0x2c]
push edi
push edx
mov byte [esp + 0xf8], 1
call fcn.5901c790
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 2
call fcn.590a63d0
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 1
call fcn.590a6240
push 0x59188854
push 0x5918a23c
push ebx
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.5901c620
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0x59188854
push 0x59188858
mov edi, dword [ecx - 8]
push ebx
lea eax, [esp + 0x44]
push edx
push eax
mov byte [esp + 0x10c], 3
add edi, 2
call fcn.5901c790
mov edx, dword [esp + 0x54]
push 0x591888e8
lea ecx, [ebx + ebp]
push str.filename_
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov byte [esp + 0x120], 4
call fcn.5901c620
add esp, 0x3c
mov ecx, dword [0x59162880]
mov byte [esp + 0xe4], 5
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x34]
mov byte [esp + 0xe4], 6
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5901f21b
push 0xfde9
push eax
lea ecx, [esp + 0x20]
call fcn.590aa6a0
mov edx, dword [esp + 0x24]
push edx
call fcn.590899e9
mov ebx, eax
mov eax, 0xfffffffa
sub eax, edi
mov ecx, 0xfffffffa
sub eax, ebp
sub ecx, edi
add ebx, eax
mov eax, dword [0x591ac718]
add esp, 4
add esi, ecx
test eax, eax
je 0x5901f27b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x100]
push ebx
push esi
push edx
push eax
push ecx
push edi
push str.AnalyseJunBaoHangBMWEMailAttach__lpbRealEmail_:__08x___wstrSid_:__s____wstrFileSize_:__s___wstrAttachFile_:__s___len_:__d___dwAttachSize_:__d_
push str.MailLog
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x28
jmp 0x5901f282
mov edi, dword [esp + 0x100]
lea ecx, [esp + 0x54]
call fcn.590abbc0
lea ecx, [esp + 0x64]
mov byte [esp + 0xe4], 7
call fcn.590abbc0
lea ecx, [esp + 0x74]
mov byte [esp + 0xe4], 8
call fcn.590b3a40
mov edx, dword [0x5916287c]
mov byte [esp + 0xe4], 9
mov dword [esp + 0x10], edx
lea eax, [esp + 0x20]
push 0x59188bd0
push eax
mov byte [esp + 0xec], 0xa
call fcn.59059db0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 0xb
call fcn.590a1040
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0xa
call fcn.590a0ec0
test edi, edi
jne 0x5901f36a
mov ecx, dword [esp + 0x10]
push 0x180
push 0x8101
push ecx
call fcn.5908928d
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5901f3c6
mov eax, dword [0x591ac718]
test eax, eax
je 0x5901f352
mov edx, dword [esp + 0xec]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push str.AnalyseCoreEMailAttach__len_:__d___astrAttachFilePath_:__S___data__S_
push str.test
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x1c
mov ecx, dword [esp + 0xec]
push esi
push ecx
push ebp
call fcn.5908909d
push ebp
call fcn.59088fbd
add esp, 0x10
mov edx, dword [esp + 0x78]
push ebx
push edx
lea ecx, [esp + 0x7c]
call fcn.590b3c80
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.590a5940
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0xec], 0xc
call fcn.590ac1d0
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.590ac1d0
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xa
call fcn.590a6240
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 9
call fcn.590a0ec0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5901fa53
test edi, edi
je 0x5901f3f2
mov dword [edi], 1
jmp 0x5901fa53
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call fcn.590a5840
mov eax, dword [esp + 0xf4]
mov byte [esp + 0xe4], 0xd
cmp eax, 0x46
jne 0x5901f41d
lea ecx, [esp + 0x3c]
call fcn.590a5fb0
mov ebp, dword [esp + 0xf8]
test ebp, ebp
je 0x5901f9a3
mov eax, dword [esp + 0x58]
xor ebx, ebx
test eax, eax
jle 0x5901f98d
mov eax, dword [0x59162880]
mov dword [esp + 0xb0], eax
mov byte [esp + 0xe4], 0xe
mov dword [esp + 0xb4], eax
mov byte [esp + 0xe4], 0xf
mov dword [esp + 0xb8], eax
mov ecx, dword [0x5916287c]
mov byte [esp + 0xe4], 0x10
mov dword [esp + 0xc0], ecx
mov byte [esp + 0xe4], 0x11
mov dword [esp + 0xd8], eax
mov edx, dword [esp + 0xf4]
lea eax, [esp + 0x3c]
mov byte [esp + 0xe4], 0x13
push eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0x98], edx
call fcn.590a63d0
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xa8]
mov dword [esp + 0xa0], eax
push edx
mov dword [esp + 0xa8], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x54]
lea ecx, [eax + ebx*4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.590a5840
push 0x5c
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 0x14
call fcn.590a73f0
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.590a8530
lea eax, [esp + 0x90]
mov byte [esp + 0xe4], 0x15
push eax
call fcn.5900d7e0
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x88]
push eax
mov byte [esp + 0xe8], 0x16
call fcn.590a5940
lea ecx, [esp + 0x20]
lea edx, [esp + 0x38]
push ecx
push eax
push edx
mov byte [esp + 0xf0], 0x17
call fcn.590a67e0
lea ecx, [esp + 0x88]
mov byte [esp + 0xe4], 0x1a
call fcn.590a6240
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 0x19
call fcn.590a0ec0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 0x38]
lea ecx, [esp + 0xb8]
push edx
call fcn.590a63d0
push 0x2e
lea ecx, [esp + 0x3c]
call fcn.590a73f0
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
call fcn.590a8980
push 0x59189488
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0x1b
call fcn.590a6e90
mov ecx, dword [esp + 0x64]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0xb4]
push edx
call fcn.590a63d0
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
push edx
mov ecx, dword [eax + ebx*4]
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0x88]
call fcn.590a0760
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 0x1c
call fcn.590a1040
lea ecx, [esp + 0x84]
mov byte [esp + 0xe4], 0x1b
call fcn.590a0ec0
mov eax, dword [esp + 0xc0]
push 0x180
push 0x8101
push eax
call fcn.5908928d
mov ecx, dword [0x5916287c]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x10], ecx
cmp edi, 0xffffffff
mov byte [esp + 0xe4], 0x1d
je 0x5901f6d5
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
push edx
push eax
push edi
call fcn.5908909d
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 4]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str._r_n_r_nliTickBegin:_I64u__liTickEnd:_I64u__liTickRecord:_I64u
push ecx
call fcn.590a3d20
mov edx, dword [esp + 0x30]
add esp, 0x20
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push 0
call fcn.590a1b50
push eax
push edi
call fcn.5908909d
push edi
call fcn.59088fbd
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax - 8]
add eax, ecx
mov ecx, dword [0x591ad574]
mov esi, ecx
mov dword [esp + 0xc4], eax
cmp esi, ecx
mov dword [esp + 0x40], esi
jl 0x5901f8ae
lea edi, [esi + 1]
test edi, edi
jne 0x5901f754
mov edi, dword [0x591ad570]
test edi, edi
je 0x5901f743
mov edx, ecx
dec ecx
test edx, edx
je 0x5901f72b
lea esi, [ecx + 1]
push 0
mov ecx, edi
call fcn.590610c0
add edi, 0x48
dec esi
jne 0x5901f718
mov esi, dword [esp + 0x40]
mov eax, dword [0x591ad570]
push eax
call fcn.5913d2f9
add esp, 4
mov dword [0x591ad570], 0
xor eax, eax
mov dword [0x591ad578], eax
mov dword [0x591ad574], eax
jmp 0x5901f8ae
mov eax, dword [0x591ad570]
test eax, eax
jne 0x5901f789
lea ecx, [edi + edi*8]
shl ecx, 3
push ecx
call fcn.5913d2d0
push edi
push eax
mov dword [0x591ad570], eax
call fcn.59061660
add esp, 0xc
mov dword [0x591ad578], edi
mov dword [0x591ad574], edi
jmp 0x5901f8ae
cmp edi, dword [0x591ad578]
jg 0x5901f7e8
cmp ecx, edi
jge 0x5901f7b4
lea edx, [ecx + ecx*8]
sub edi, ecx
push edi
lea eax, [eax + edx*8]
push eax
call fcn.59061660
lea eax, [esi + 1]
add esp, 8
mov dword [0x591ad574], eax
jmp 0x5901f8ae
jle 0x5901f7db
lea edx, [edi + edi*8]
sub ecx, edi
lea edi, [eax + edx*8]
mov eax, ecx
dec ecx
test eax, eax
je 0x5901f7db
lea esi, [ecx + 1]
push 0
mov ecx, edi
call fcn.590610c0
add edi, 0x48
dec esi
jne 0x5901f7c8
mov esi, dword [esp + 0x40]
lea eax, [esi + 1]
mov dword [0x591ad574], eax
jmp 0x5901f8ae
mov eax, dword [0x591ad57c]
test eax, eax
jne 0x5901f814
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5901f808
mov eax, 4
jmp 0x5901f814
cmp eax, 0x400
jle 0x5901f814
mov eax, 0x400
mov ecx, dword [0x591ad578]
add eax, ecx
cmp edi, eax
jge 0x5901f826
mov dword [esp + 0x48], eax
jmp 0x5901f82c
mov dword [esp + 0x48], edi
mov eax, edi
lea edx, [eax + eax*8]
shl edx, 3
push edx
call fcn.5913d2d0
mov ecx, dword [0x591ad574]
mov esi, dword [0x591ad570]
mov edi, eax
mov dword [esp + 0x90], eax
lea ecx, [ecx + ecx*8]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 1]
mov ecx, dword [0x591ad574]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*8]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.59061660
mov eax, dword [0x591ad570]
push eax
call fcn.5913d2f9
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x58]
mov dword [0x591ad574], esi
mov esi, dword [esp + 0x50]
add esp, 0x10
mov dword [0x591ad570], ecx
mov dword [0x591ad578], edx
mov edx, dword [0x591ad570]
lea ecx, [esi + esi*8]
lea eax, [esp + 0x94]
push eax
lea ecx, [edx + ecx*8]
call fcn.59061030
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0x1b
call fcn.590a0ec0
lea ecx, [esp + 0x50]
mov byte [esp + 0xe4], 0x19
call fcn.590a6240
lea ecx, [esp + 0x38]
mov byte [esp + 0xe4], 0x15
call fcn.590a6240
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0x14
call fcn.590a6240
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0x13
call fcn.590a6240
lea ecx, [esp + 0xd8]
mov byte [esp + 0xe4], 0x21
call fcn.590a6240
lea ecx, [esp + 0xc0]
mov byte [esp + 0xe4], 0x20
call fcn.590a0ec0
lea ecx, [esp + 0xb8]
mov byte [esp + 0xe4], 0x1f
call fcn.590a6240
lea ecx, [esp + 0xb4]
mov byte [esp + 0xe4], 0x1e
call fcn.590a6240
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe4], 0xd
call fcn.590a6240
mov eax, dword [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x5901f43a
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 9
call fcn.590a6240
jmp 0x5901fa53
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 9
call fcn.590a6240
lea eax, [esp + 0x44]
push 0
push eax
call fcn.59059db0
lea ecx, [esp + 0x6c]
push 1
lea edx, [esp + 0x60]
mov eax, dword [esp + 0x50]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov byte [esp + 0x118], 0x23
call fcn.5900c690
add esp, 0x34
test eax, eax
je 0x5901fa42
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
push ebx
push esi
push ecx
call fcn.5900c480
add esp, 0xc
test eax, eax
je 0x5901fa42
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
mov edx, dword [esp + 0x58]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 1
push edx
push ebx
push esi
call fcn.5900e750
add esp, 0x44
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 9
call fcn.590a0ec0
lea ecx, [esp + 0x74]
mov byte [esp + 0xe4], 8
call fcn.590b3a50
lea ecx, [esp + 0x64]
mov byte [esp + 0xe4], 7
call fcn.590abbd0
lea ecx, [esp + 0x54]
mov byte [esp + 0xe4], 6
call fcn.590abbd0
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 5
call fcn.590a6240
lea ecx, [esp + 0x34]
mov byte [esp + 0xe4], 4
call fcn.590a0ec0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 3
call fcn.590a6240
lea ecx, [esp + 0x30]
mov byte [esp + 0xe4], 1
call fcn.590a0ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe4], 0xffffffff
call fcn.590a0ec0
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret