Function at 0x4ad5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fce90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0x46]
mov ebx, ecx
test al, al
mov dword [ebp - 4], edi
je 0x4ad633
mov eax, dword [esi + 0x38]
mov ecx, dword [ebx + 0x3f0]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 8]
jmp 0x4ad64d
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 0x3f0]
push 0x2f
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 8]
push ecx
call fcn.005c2f50
add esp, 8
cmp eax, edi
je 0x4add7b
mov edx, dword [0x6c826c]
mov dword [ebp + 8], edx
mov cl, byte [esi + 0x46]
mov byte [ebp - 4], 1
test cl, cl
jne 0x4ad66a
inc eax
push eax
lea eax, [ebp + 8]
push 0x6a21c0
push eax
call fcn.005d838b
add esp, 0xc
lea ecx, [ebp + 8]
push 0x5c
push 0x2f
call fcn.005d7d71
push 0x2d
push 0x3a
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x2a
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x3f
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x7c
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x3c
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x3e
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x22
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x2d
push 0x25
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x2f
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x26
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x21
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x40
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x27
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x2c
lea ecx, [ebp + 8]
call fcn.005d7d71
push 0x5f
push 0x3b
lea ecx, [ebp + 8]
call fcn.005d7d71
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x1c], di
mov ecx, dword [ebp + 8]
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x40], di
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402880
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp eax, edi
jne 0x4ad76f
lea eax, [ebp - 0x40]
push eax
call fcn.005c2f1a
mov esi, eax
mov eax, dword [ebx + 0x298]
add esp, 4
cmp eax, edi
jne 0x4ad78a
lea eax, [ebx + 0x29c]
push eax
call fcn.005c2f1a
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, edi
mov ecx, edx
jne 0x4ad79f
lea ecx, [ebp - 0x40]
cmp word [ecx + esi*2 - 2], 0x5c
mov dword [ebp - 0x14], 0x6cc7bc
je 0x4ad7b5
mov dword [ebp - 0x14], 0x69e054
mov ecx, dword [ebx + 0x298]
cmp ecx, edi
jne 0x4ad7c5
lea ecx, [ebx + 0x29c]
cmp word [ecx + eax*2 - 2], 0x5c
mov edi, 0x6cc7bc
je 0x4ad7d7
mov edi, 0x69e054
test edx, edx
mov esi, edx
jne 0x4ad7e0
lea esi, [ebp - 0x40]
mov eax, dword [ebx + 0x298]
test eax, eax
jne 0x4ad7f0
lea eax, [ebx + 0x29c]
mov edx, str._s_s_s_s
test edx, edx
je 0x4ad972
test eax, eax
je 0x4ad972
test edi, edi
je 0x4ad972
test esi, esi
je 0x4ad972
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4ad972
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d680
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.0040d680
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.0040d680
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.0040d680
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00401070
push str._s_s_s_s
lea ecx, [ebp - 0x50]
call fcn.00401ec0
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 8
test edi, edi
jne 0x4ad87a
lea edi, [ebp - 0x34]
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [ebp - 0x5c]
mov ebx, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [ebp - 0x68]
add ebx, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
mov dword [ebp - 0x14], ebx
mov ebx, eax
push edi
add ebx, esi
call fcn.005c2f1a
mov ecx, dword [ebp - 0x14]
add ebx, ecx
lea esi, [eax + ebx + 5]
lea edi, [esi + esi]
push edi
call fcn.005db95d
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x20], edx
je 0x4ad936
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2c]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x68]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x38]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f40
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005c2f1a
add esp, 0x20
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4ad97c
lea eax, [ebp - 0x1c]
push eax
call fcn.005c2f1a
mov edi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x4ad99b
push eax
call fcn.005c2f1a
add esp, 4
mov esi, eax
jmp 0x4ad99d
xor esi, esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4ad9af
push eax
call fcn.005c2f1a
add esp, 4
jmp 0x4ad9b1
xor eax, eax
lea ebx, [eax + esi]
lea edx, [ebx + edi]
cmp edx, 0x104
jle 0x4adac6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4ada08
mov esi, eax
push esi
call fcn.005c2f1a
add esp, 4
cmp eax, 0x32
jbe 0x4ada08
mov eax, dword [ebp + 0x18]
mov word [esi + 0x60], 0
test eax, eax
je 0x4ad9f4
push eax
call fcn.005c2f1a
add esp, 4
mov esi, eax
jmp 0x4ad9f6
xor esi, esi
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.005c2f1a
mov ebx, eax
add esp, 4
add ebx, esi
jmp 0x4ad9b4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4ada50
push esi
call fcn.005c2f1a
add esp, 4
cmp eax, 0xa
jbe 0x4ada50
mov eax, dword [ebp + 0x14]
mov word [esi + 0x10], 0
test eax, eax
je 0x4ada39
mov edx, eax
push edx
call fcn.005c2f1a
add esp, 4
mov esi, eax
jmp 0x4ada3b
xor esi, esi
mov eax, dword [ebp + 0x18]
push eax
call fcn.005c2f1a
mov ebx, eax
add esp, 4
add ebx, esi
jmp 0x4ad9b4
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4ada5a
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.005c2e6a
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4ada96
mov word [eax], si
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4ada78
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.005c2e6a
add esp, 8
cmp eax, esi
je 0x4ada8d
mov word [eax + 2], si
jmp 0x4adaac
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4adaa0
jmp 0x4ada9d
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4adaa0
lea eax, [ebp - 0x1c]
mov word [eax + edi*2 - 4], si
mov word [eax + edi*2 - 2], 0x5c
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4adab6
lea eax, [ebp - 0x1c]
push eax
call fcn.005c2f1a
add esp, 4
mov edi, eax
jmp 0x4ad9b4
mov eax, dword [0x6cce44]
test eax, eax
je 0x4adae5
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4adad9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4adb02
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4adaef
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00487380
add esp, 8
test eax, eax
jne 0x4addbb
mov eax, dword [ebp - 0x20]
xor edi, edi
cmp eax, edi
jne 0x4adb0e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.00401f50
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, edi
jne 0x4adb2f
lea eax, [ebp - 0x28]
push eax
call fcn.005c2f1a
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, edi
mov edx, ecx
jne 0x4adb44
lea edx, [ebp - 0x28]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4adbe5
mov edx, 0x69e054
test edx, edx
je 0x4adbe5
push edx
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x4adbe2
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x4adb7e
push eax
call fcn.005c2f1a
add esp, 4
mov esi, eax
jmp 0x4adb80
xor esi, esi
push 0x69e054
call fcn.005c2f1a
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4adbe2
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x4adbbd
push eax
push esi
call fcn.005c30ba
push 0x69e054
push esi
call fcn.005c3090
add esp, 0x10
jmp 0x4adbcb
push 0x69e054
push esi
call fcn.005c30ba
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00401070
push esi
mov dword [ebp - 0x2c], esi
call fcn.005c2f1a
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, edi
jne 0x4adbec
lea ecx, [ebp - 0x28]
add ecx, 6
push 0x5c
push ecx
call fcn.005c338f
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4addaf
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4adc0e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
call fcn.00401f50
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xa
cmp ecx, edi
jne 0x4adc2f
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4adc39
lea eax, [ebp - 0x28]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x4adc4d
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.00487380
add esp, 8
cmp eax, edi
jne 0x4add8e
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x4adc6a
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.00487560
add esp, 8
cmp eax, edi
jne 0x4add8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6c826c]
mov dword [ebp + 0x18], eax
push edi
lea ecx, [ebp + 0x10]
push edi
push ecx
push 0x400
push esi
push edi
push 0x1100
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp + 0x10]
mov eax, dword [0x6cdd3c]
push edx
lea ecx, [ebp + 0x18]
push eax
push ecx
call fcn.005d838b
mov edx, dword [ebp + 0x10]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x6c826c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov bl, 0xc
cmp eax, edi
mov byte [ebp - 4], bl
jne 0x4adce0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.005df616
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
push esi
push ecx
push edx
lea eax, [ebp + 0x14]
push str._s__s_error__ld_n
push eax
mov byte [ebp - 4], 0xd
call fcn.005d838b
mov ecx, dword [0x6ccf64]
add esp, 0x14
cmp ecx, edi
je 0x4add1c
mov edx, dword [ebp + 0x14]
push 1
push edx
call fcn.0049c790
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005df556
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xb
call fcn.005df556
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xa
call fcn.005df556
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.005df556
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
add esi, 2
push 0x5c
push esi
call fcn.005c338f
add esp, 8
lea ecx, [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 9
call fcn.00401070
jmp 0x4adbfc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
mov eax, dword [ebp - 0x20]
xor ebx, ebx
cmp eax, ebx
jne 0x4addc7
lea eax, [ebp - 0x1c]
mov ecx, 0x69eb44
test ecx, ecx
je 0x4adf21
cmp eax, ebx
je 0x4adf21
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x4adf21
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x4adf21
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.00401f50
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.0040d680
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.0040d680
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 0x10
mov ecx, esi
call fcn.00401070
push 0x69eb44
lea ecx, [ebp - 0x68]
call fcn.00401ec0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x11
cmp eax, ebx
je 0x4ade4a
mov dword [ebp + 0x14], eax
jmp 0x4ade50
lea edx, [ebp - 0x34]
mov dword [ebp + 0x14], edx
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [ebp - 0x50]
mov ebx, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
mov dword [ebp + 0x18], ebx
mov ebx, eax
mov eax, dword [ebp + 0x14]
add ebx, edi
push eax
call fcn.005c2f1a
mov ecx, dword [ebp + 0x18]
add ebx, ecx
lea ebx, [eax + ebx + 4]
lea eax, [ebx + ebx]
push eax
call fcn.005db95d
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esi], edi
je 0x4adeef
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x5c]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x38]
call fcn.00401f40
push eax
lea ecx, [ebp - 0x68]
call fcn.00401f40
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.005c2eaa
mov ecx, dword [esi]
push ecx
call fcn.005c2f1a
add esp, 0x1c
mov dword [esi + 8], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x10
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x4adf24
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4adf2d
lea eax, [esi + 4]
push 0x6a1e04
push eax
call fcn.005c3775
add esp, 8
test eax, eax
je 0x4add57
mov edx, 0x6a1e04
test edx, edx
je 0x4adf24
mov eax, 0x69e054
test eax, eax
je 0x4adf24
push eax
push edx
call fcn.005c342f
add esp, 8
test eax, eax
je 0x4adf24
mov eax, dword [esi]
push 0x6a1e04
push eax
call fcn.005c3775
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4adf9b
push 0x6a1e04
inc ebx
call fcn.005c2f1a
lea eax, [edi + eax*2]
push 0x6a1e04
push eax
call fcn.005c3775
add esp, 0xc
mov edi, eax
jmp 0x4adf77
test ebx, ebx
je 0x4adf24
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040d680
push 0x6a1e04
mov byte [ebp - 4], 0x12
call fcn.005c2f1a
push 0x69e054
mov edi, eax
call fcn.005c2f1a
add esp, 8
cmp eax, edi
jbe 0x4ae026
mov ecx, esi
call fcn.00401070
lea ecx, [ebp - 0x50]
call fcn.00401f40
push eax
call fcn.005c2f1a
push 0x6a1e04
mov esi, eax
call fcn.005c2f1a
push 0x69e054
mov edi, eax
call fcn.005c2f1a
sub eax, edi
imul eax, ebx
add esi, eax
lea edx, [esi + esi + 2]
push edx
call fcn.005db95d
mov esi, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
mov dword [esi], eax
jne 0x4ae026
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x4adf24
mov ebx, dword [esi]
lea ecx, [ebp - 0x50]
call fcn.00401f40
push 0x6a1e04
push eax
mov dword [ebp + 0x18], eax
call fcn.005c3775
add esp, 8
test eax, eax
mov dword [ebp + 0x14], eax
je 0x4ae0b8
mov esi, dword [ebp + 0x18]
mov edi, ebx
sub eax, esi
push 0x69e054
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
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]
call fcn.005c2f1a
mov ecx, eax
mov esi, 0x69e054
shl ecx, 1
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x69e054
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005c2f1a
push 0x6a1e04
lea ebx, [ebx + eax*2]
call fcn.005c2f1a
mov ecx, dword [ebp + 0x14]
push 0x6a1e04
lea eax, [ecx + eax*2]
push eax
mov dword [ebp + 0x18], eax
call fcn.005c3775
add esp, 0x14
jmp 0x4ae041
mov esi, dword [ebp + 0x18]
push esi
call fcn.005c2f1a
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005c2f1a
mov esi, dword [ebp + 0x10]
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [esi]
push ecx
call fcn.005c2f1a
add esp, 0xc
lea ecx, [ebp - 0x50]
mov dword [esi + 8], eax
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x4adf21