Function at 0x40ba90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce8e3
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x58]
mov ebx, dword [ebp + 8]
test al, al
je 0x40bfa5
mov al, byte [edi + 0x51]
test al, al
je 0x40bfa5
mov eax, dword [edi + 0x4c]
cmp dword [ebx + 4], eax
jl 0x40bfa5
push dword [edi + 0x64]
push dword [edi + 0x60]
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00408b50
mov ecx, dword [edi + 0x54]
add esp, 0x10
shl ecx, 0x14
cmp dword [edi + 0x6c], ecx
seta cl
test al, al
je 0x40bb27
test cl, cl
jne 0x40bb16
cmp byte [edi + 0x7c], cl
je 0x40be06
cmp byte [edi + 0x7c], 0
jne 0x40bb27
mov ecx, dword [edi + 0x68]
lea eax, [ecx + 1]
mov dword [edi + 0x68], eax
jmp 0x40bb29
xor ecx, ecx
cmp dword [edi + 0x70], 0
mov dword [edi + 0x68], ecx
je 0x40be06
mov eax, dword [edi + 0x70]
test eax, eax
je 0x40bb4d
push eax
call fcn.00495371
add esp, 4
mov dword [edi + 0x70], 0
push dword [edi + 0x64]
lea eax, [ebp - 0x2c4]
mov dword [edi + 0x6c], 0
push dword [edi + 0x60]
push eax
call fcn.00408b20
add esp, 0xc
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x26c], xmm0
movdqu xmm0, xmmword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24c], eax
movdqu xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
lea esi, [edi + 0x78]
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x248], esi
call fcn.0047df9a
add esp, 4
test eax, eax
je 0x40bbeb
push eax
call fcn.0047db79
add esp, 4
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040b770
push eax
lea ecx, [ebp - 0x244]
call fcn.0040c460
lea ecx, [ebp - 0x284]
call fcn.00402080
lea eax, [ebp - 0x284]
mov ecx, edi
push eax
call fcn.0040b860
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040c460
lea ecx, [ebp - 0x284]
call fcn.00402080
push esi
mov byte [edi + 0x7c], 0
mov byte [ebp - 4], 1
call fcn.0047dfc3
add esp, 4
test eax, eax
je 0x40bc57
push eax
call fcn.0047db79
add esp, 4
push 0x1ff
lea eax, [ebp - 0x213]
mov byte [ebp - 0x214], 0
push 0
push eax
call fcn.0049aba0
mov al, byte [edi + 0x52]
add esp, 0xc
mov esi, dword [ebp - 0x258]
test al, al
je 0x40bcb6
mov eax, dword [ebp - 0x25c]
inc eax
push eax
lea eax, [esi + 0x76c]
push eax
lea eax, [ebp - 0x214]
push str._04d__02d_
push eax
call fcn.0049687b
add esp, 0x10
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x22c]
push eax
call fcn.0040c4e0
sub esp, 0x18
lea eax, [ebp - 0x22c]
mov ecx, esp
push eax
call fcn.0040c3c0
call fcn.00409ba0
add esp, 0x18
test al, al
jne 0x40bcec
sub esp, 0x18
lea eax, [ebp - 0x22c]
mov ecx, esp
push eax
call fcn.0040c3c0
call fcn.00409be0
add esp, 0x18
mov eax, dword [edi + 0x80]
add eax, 0x50
cmp dword [eax + 0x14], 0x10
jb 0x40bcfd
mov eax, dword [eax]
push dword [edi + 0x68]
cmp dword [ebp - 0x230], 0x10
lea ecx, [ebp - 0x244]
push eax
push dword [ebp - 0x268]
cmovae ecx, dword [ebp - 0x244]
push dword [ebp - 0x264]
mov eax, dword [ebp - 0x25c]
push dword [ebp - 0x260]
inc eax
push eax
lea eax, [esi + 0x76c]
push eax
push ecx
lea eax, [ebp - 0x214]
push str._s__04d_02d_02d_02d_02d__s__03d.log
push eax
call fcn.0049687b
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x260]
call fcn.004105d0
add esp, 0x2c
mov esi, eax
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0040b860
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x29c]
call fcn.00410570
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x284]
call fcn.004105a0
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x40bdab
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40bdb3
mov eax, dword [eax]
push esi
push eax
call fcn.004972ea
add esp, 8
lea ecx, [ebp - 0x284]
call fcn.00402080
lea ecx, [ebp - 0x29c]
call fcn.00402080
lea ecx, [ebp - 0x2b8]
call fcn.00402080
lea ecx, [ebp - 0x260]
call fcn.00402080
lea ecx, [ebp - 0x22c]
call fcn.00402080
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.00402080
cmp dword [edi + 0x70], 0
lea esi, [edi + 0x70]
jne 0x40bfe0
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
mov dword [ebp - 4], 6
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
lea esi, [edi + 0x78]
mov byte [ebp - 4], 7
push esi
mov dword [ebp - 0x248], esi
call fcn.0047df9a
add esp, 4
test eax, eax
je 0x40be73
push eax
call fcn.0047db79
add esp, 4
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.0040b770
push eax
lea ecx, [ebp - 0x244]
call fcn.0040c460
lea ecx, [ebp - 0x260]
call fcn.00402080
lea eax, [ebp - 0x260]
mov ecx, edi
push eax
call fcn.0040b860
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040c460
lea ecx, [ebp - 0x260]
call fcn.00402080
push esi
mov byte [edi + 0x7c], 0
mov byte [ebp - 4], 7
call fcn.0047dfc3
add esp, 4
test eax, eax
je 0x40bedf
push eax
call fcn.0047db79
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x22c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004021e0
call fcn.00409ba0
add esp, 0x18
test al, al
jne 0x40bf2a
sub esp, 0x18
lea eax, [ebp - 0x22c]
mov ecx, esp
push eax
call fcn.0040c3c0
call fcn.00409be0
add esp, 0x18
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040cfd0
push str..log
lea ecx, [ebp - 0x22c]
call fcn.0040c4e0
cmp dword [edi + 0x70], 0
lea esi, [edi + 0x70]
mov eax, dword [ebx + 8]
mov dword [edi + 0x60], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x64], eax
jne 0x40bfc5
cmp dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x22c]
push 0x4e6cc4
cmovae eax, dword [ebp - 0x22c]
mov ecx, esi
push eax
call fcn.004085c0
cmp dword [esi], 0
jne 0x40bfc5
lea ecx, [ebp - 0x22c]
mov byte [edi + 0x51], 0
call fcn.00402080
lea ecx, [ebp - 0x244]
call fcn.00402080
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x22c]
call fcn.00402080
lea ecx, [ebp - 0x244]
call fcn.00402080
cmp dword [esi], 0
je 0x40bfa5
push dword [ebx + 0x18]
lea eax, [ebx + 0x1c]
mov ecx, esi
push eax
call fcn.00408600
mov eax, dword [ebx + 0x18]
add dword [edi + 0x6c], eax
mov eax, dword [edi + 0x80]
add dword [eax + 0x80], 1
adc dword [eax + 0x84], 0
mov ecx, dword [edi + 0x80]
mov eax, dword [ebx + 0x18]
cdq
add dword [ecx + 0x88], eax
mov al, 1
adc dword [ecx + 0x8c], edx
jmp 0x40bfa7