Function at 0x4c59b0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4f75b3
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x834]
mov dword fs:[0], eax
mov eax, dword [0x103a97c]
cmp eax, 0x55
je 0x4c59fa
cmp eax, 0x51
jne 0x4c5a09
push str.ReadBKIndex_start
push 1
call fcn.0043d500
add esp, 8
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x35]
push ebx
push eax
mov byte [esp + 0x3c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103ad80
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov dword [esp + 0x83c], ebx
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push ecx
lea edx, [esp + 0x34]
push str._sI0N1D2E3X4.TC_BK.sys
push edx
call esi
push 0x1ff
lea eax, [esp + 0x241]
push ebx
push eax
mov byte [esp + 0x248], bl
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x24c]
push str._sI0N1D2E3X4.sys
push edx
call esi
add esp, 0x24
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x30]
push 0x5023c4
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4c5ad3
mov dword [esp + 0x83c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor al, al
jmp 0x4c5cad
push ebx
push ebx
push esi
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x83c], 1
lea ecx, [esp + 0x1c]
call sub.mfc90.dll_Ordinal_580
mov byte [esp + 0x83c], 2
push esi
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x4c5c45
mov ebp, dword [sym.imp.MSVCR90.dll_fgets]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3ff
lea eax, [esp + 0x435]
push ebx
push eax
mov byte [esp + 0x43c], bl
call sub.MSVCR90.dll_memset
push esi
lea ecx, [esp + 0x440]
push 0x400
push ecx
call ebp
add esp, 0x18
test eax, eax
je 0x4c5c45
lea eax, [esp + 0x430]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c5b60
sub eax, edx
cmp eax, 5
jle 0x4c5c33
lea edx, [esp + 0x430]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + eax + 0x432], bl
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
call sub.mfc90.dll_Ordinal_6494
push 0x502ba4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00492540
add esp, 0xc
push 0x1089f20
call edi
mov eax, dword [esp + 0x24]
cmp eax, 1
jle 0x4c5c28
cmp dword [0x53ee3c], 0x186a0
jge 0x4c5c28
cmp eax, 1
jle 0x4c5cd5
cmp eax, ebx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 4]
jle 0x4c5cd5
mov eax, dword [ecx]
push edx
push eax
mov ecx, 0x53ee30
call fcn.0042f720
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov eax, dword [esp + 0x24]
cmp eax, ebx
jle 0x4c5cd5
cmp eax, 1
jle 0x4c5cd5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push eax
push ecx
mov ecx, 0x53ee4c
call fcn.0042f720
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_817]
push 0x1089f20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
je 0x4c5b20
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [0x103a97c]
add esp, 4
cmp eax, 0x55
je 0x4c5c5e
cmp eax, 0x51
jne 0x4c5c74
mov edx, dword [0x53ee3c]
push edx
push str.ReadBKIndex_getcount___d_end
push 1
call fcn.0043d500
add esp, 0xc
mov byte [esp + 0x83c], 1
lea ecx, [esp + 0x1c]
call sub.mfc90.dll_Ordinal_781
mov byte [esp + 0x83c], bl
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x83c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov al, 1
mov ecx, dword [esp + 0x834]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x81c]
xor ecx, esp
call fcn.004e0148
add esp, 0x82c
ret
call sub.mfc90.dll_Ordinal_1252
int3