Function at 0x52463c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x63
push 0
push 0
dec ecx
jne 0x524644
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dd0
xor eax, eax
push ebp
push 0x5255aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
xor edx, edx
push ebp
push 0x5254ff
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x238]
call fcn.00409abc
test al, al
jne 0x5246b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
xor eax, eax
push ebp
push 0x52473d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x23c]
mov edx, 3
call fcn.00404ca0
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
call fcn.00402f7c
lea eax, [ebp - 0x234]
call fcn.00402d18
call fcn.00402988
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x234]
call fcn.00403384
lea eax, [ebp - 0x234]
call fcn.004033f0
call fcn.00402988
lea eax, [ebp - 0x234]
call fcn.00403038
call fcn.00402988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524759
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x5255d0
push dword [ebp - 4]
lea eax, [ebp - 0x240]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x240]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x244]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x244]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, 0x44
je 0x524867
cmp al, 0x54
je 0x524867
cmp al, 0x4d
je 0x524867
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x5255e4
push dword [ebp - 4]
lea eax, [ebp - 0x248]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x248]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x24c]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x250]
call fcn.00409af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x4d
jne 0x524909
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.005243dc
push 0
mov edx, dword [0x52c36c]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x254]
mov ecx, dword [ebp - 4]
call fcn.00404c2c
mov eax, dword [ebp - 0x254]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x258]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x25c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x25c]
call fcn.00409af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x44
jne 0x524c0f
lea eax, [ebp - 0x260]
push eax
mov ecx, 0x64
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404e40
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x68]
mov edx, 0x5255f4
call fcn.00404c2c
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x264]
call fcn.00409abc
test al, al
jne 0x524a07
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x525600
push dword [ebp - 4]
lea eax, [ebp - 0x268]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x268]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x26c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x26c]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x270]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x270]
call fcn.00409af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004049b8
xor eax, eax
push ebp
push 0x524a98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x274]
mov edx, 3
call fcn.00404ca0
mov edx, dword [ebp - 0x274]
lea eax, [ebp - 0x234]
call fcn.00402f7c
lea eax, [ebp - 0x234]
call fcn.00402d18
call fcn.00402988
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x234]
call fcn.00403384
lea eax, [ebp - 0x234]
call fcn.004033f0
call fcn.00402988
lea eax, [ebp - 0x234]
call fcn.00403038
call fcn.00402988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524ab4
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x5255d0
push dword [ebp - 0x68]
lea eax, [ebp - 0x278]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x278]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x27c]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov edx, dword [0x52c36c]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x280]
mov ecx, dword [ebp - 4]
call fcn.00404c2c
mov eax, dword [ebp - 0x280]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x284]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x284]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov edx, dword [0x52c36c]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 0x68]
call fcn.00404c2c
mov eax, dword [ebp - 0x288]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x28c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x28c]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x290]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x290]
call fcn.00409af0
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x294]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x294]
call fcn.00409af0
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x54
jne 0x524f15
lea eax, [ebp - 0x298]
push eax
mov ecx, 0x64
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404e40
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x68]
mov edx, 0x525614
call fcn.00404c2c
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x29c]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x29c]
call fcn.00409abc
test al, al
jne 0x524d0d
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x525600
push dword [ebp - 4]
lea eax, [ebp - 0x2a0]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2a0]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x2a4]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2a4]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x2a8]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2a8]
call fcn.00409af0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004049b8
xor eax, eax
push ebp
push 0x524d9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x2ac]
mov edx, 3
call fcn.00404ca0
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x234]
call fcn.00402f7c
lea eax, [ebp - 0x234]
call fcn.00402d18
call fcn.00402988
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x234]
call fcn.00403384
lea eax, [ebp - 0x234]
call fcn.004033f0
call fcn.00402988
lea eax, [ebp - 0x234]
call fcn.00403038
call fcn.00402988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524dba
push 0
mov eax, dword [0x52c164]
push dword [eax]
push 0x5255d0
push dword [ebp - 0x68]
lea eax, [ebp - 0x2b0]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2b0]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x2b4]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2b4]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov edx, dword [0x52c36c]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2b8]
mov ecx, dword [ebp - 4]
call fcn.00404c2c
mov eax, dword [ebp - 0x2b8]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x2bc]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2bc]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov edx, dword [0x52c36c]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2c0]
mov ecx, dword [ebp - 0x68]
call fcn.00404c2c
mov eax, dword [ebp - 0x2c0]
call fcn.00404de0
push eax
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x2c4]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2c4]
call fcn.00404de0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 4]
lea eax, [ebp - 0x2c8]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2c8]
call fcn.00409af0
mov eax, dword [0x52c460]
push dword [eax]
push 0x5255c4
push dword [ebp - 0x68]
lea eax, [ebp - 0x2cc]
mov edx, 3
call fcn.00404ca0
mov eax, dword [ebp - 0x2cc]
call fcn.00409af0
lea eax, [ebp - 0x18]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x1c]
push eax
mov ecx, 3
mov edx, 8
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x20]
push eax
mov ecx, 1
mov edx, 0xc
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x24]
push eax
mov ecx, 6
mov edx, 0xd
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x28]
push eax
mov ecx, 1
mov edx, 0x13
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0xa
mov edx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x30]
push eax
mov ecx, 0xe
mov edx, 0x23
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x34]
push eax
mov ecx, 0xe
mov edx, 0x33
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x38]
push eax
mov ecx, 0xe
mov edx, 0x43
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x3c]
push eax
mov ecx, 3
mov edx, 0x53
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x40]
push eax
mov ecx, 1
mov edx, 0x56
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x44]
push eax
mov ecx, 1
mov edx, 0x57
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea eax, [ebp - 0x48]
push eax
mov ecx, 1
mov edx, 0x58
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
mov eax, dword [ebp - 0x3c]
call fcn.004096ac
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
call fcn.004096ac
mov esi, eax
mov eax, dword [ebp - 0x44]
call fcn.004096ac
add esi, eax
mov eax, dword [ebp - 0x48]
call fcn.004096ac
add esi, eax
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00524300
mov eax, dword [ebp - 0x28]
mov edx, 0x525620
call fcn.00404d2c
jne 0x52508a
lea eax, [ebp - 0x58]
mov edx, 0x52562c
call fcn.004049b8
jmp 0x525097
lea eax, [ebp - 0x58]
mov edx, 0x52563c
call fcn.004049b8
lea eax, [ebp - 0x64]
mov edx, 0x52564c
call fcn.004049b8
lea eax, [ebp - 0x2d0]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2d0]
push 0x52565c
lea eax, [ebp - 0x2d4]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2d4]
push 0x52565c
lea eax, [ebp - 0x2d8]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2d8]
push 0x525668
lea eax, [ebp - 0x2dc]
push eax
mov ecx, 2
mov edx, 9
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2dc]
push 0x525674
lea eax, [ebp - 0x2e0]
push eax
mov ecx, 2
mov edx, 0xb
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2e0]
push 0x525674
lea eax, [ebp - 0x2e4]
push eax
mov ecx, 2
mov edx, 0xd
mov eax, dword [ebp - 0x34]
call fcn.00404e40
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404ca0
lea eax, [ebp - 0x2e8]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2e8]
push 0x52565c
lea eax, [ebp - 0x2ec]
push eax
mov ecx, 2
mov edx, 5
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2ec]
push 0x52565c
lea eax, [ebp - 0x2f0]
push eax
mov ecx, 2
mov edx, 7
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2f0]
push 0x525668
lea eax, [ebp - 0x2f4]
push eax
mov ecx, 2
mov edx, 9
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2f4]
push 0x525674
lea eax, [ebp - 0x2f8]
push eax
mov ecx, 2
mov edx, 0xb
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2f8]
push 0x525674
lea eax, [ebp - 0x2fc]
push eax
mov ecx, 2
mov edx, 0xd
mov eax, dword [ebp - 0x38]
call fcn.00404e40
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x38]
mov edx, 0xb
call fcn.00404ca0
push 0x525680
push dword [ebp - 0x30]
push 0x5256b0
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404ca0
mov eax, dword [0x52c5e8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x54]
call fcn.00513110
test al, al
jne 0x52529e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
push 0x5256bc
push dword [ebp - 0x30]
push 0x5256b0
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404ca0
mov eax, dword [0x52c5e8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x54]
call fcn.00513110
test al, al
jne 0x5252d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52556a
xor edi, edi
mov esi, dword [ebp - 0x4c]
test esi, esi
jle 0x5253ee
mov ebx, 1
lea eax, [ebp - 0x5c]
call fcn.00404920
lea eax, [ebp - 0x5c]
push eax
mov eax, ebx
dec eax
mov edx, eax
shl edx, 3
lea edx, [edx + edx*2]
add edx, 0x59
mov ecx, 0x18
mov eax, dword [ebp - 0x10]
call fcn.0043be2c
lea edx, [ebp - 0x300]
mov eax, dword [ebp - 0x5c]
call fcn.00409370
mov eax, dword [ebp - 0x300]
call fcn.00404be0
cmp eax, 5
jle 0x525330
inc edi
mov eax, dword [ebp - 0x5c]
mov al, byte [eax]
cmp al, 0x4a
jne 0x525348
lea eax, [ebp - 0x60]
mov edx, 0x5256e8
call fcn.004049b8
jmp 0x525368
cmp al, 0x4b
jne 0x52535b
lea eax, [ebp - 0x60]
mov edx, 0x5256f4
call fcn.004049b8
jmp 0x525368
lea eax, [ebp - 0x60]
mov edx, 0x525700
call fcn.004049b8
mov eax, dword [ebp - 0x5c]
call fcn.00404be0
cmp eax, 0x18
jne 0x5253e6
push 0x52570c
push dword [ebp - 0x30]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x5c]
push 0x5256b0
push 0x525754
push dword [ebp - 0x60]
push 0x525754
lea edx, [ebp - 0x304]
mov eax, ebx
call fcn.00409570
push dword [ebp - 0x304]
push 0x525754
push 0x5256b0
push 0
push 0x5256b0
push 0x525760
lea eax, [ebp - 0x54]
mov edx, 0x10
call fcn.00404ca0
mov eax, dword [0x52c5e8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x54]
call fcn.00513110
inc ebx
dec esi
jne 0x5252ea
push 0x52576c
push dword [ebp - 0x30]
push 0x5256b0
push 0x525754
push dword [ebp - 0x18]
push 0x525754
lea edx, [ebp - 0x308]
xor eax, eax
call fcn.00409570
push dword [ebp - 0x308]
push 0x525754
push 0x5256b0
push dword [ebp - 0x34]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x38]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x58]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x1c]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x2c]
push 0x5256b0
push 0x525754
push 0x5256b0
push dword [ebp - 0x64]
push 0x5256b0
push 0x525754
lea edx, [ebp - 0x30c]
mov eax, dword [ebp - 0x50]
call fcn.00409570
push dword [ebp - 0x30c]
push 0x525754
lea edx, [ebp - 0x310]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
call fcn.00409570
push dword [ebp - 0x310]
push 0x525754
lea edx, [ebp - 0x314]
mov eax, edi
call fcn.00409570
push dword [ebp - 0x314]
push 0x525760
lea eax, [ebp - 0x54]
mov edx, 0x26
call fcn.00404ca0
mov eax, dword [0x52c5e8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x54]
call fcn.00513110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525566
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5255b1
lea eax, [ebp - 0x31c]
mov edx, 0x3a
call fcn.00404944
lea eax, [ebp - 0x68]
mov edx, 6
call fcn.00404944
lea eax, [ebp - 0x48]
mov edx, 0x10
call fcn.00404944
lea eax, [ebp - 4]
call fcn.00404920
ret