Function at 0x411080
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b288
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov edi, str._Xml2Install::CopyDir_Start
mov dword [ebp - 4], 1
call fcn.00408b90
xor ebx, ebx
cmp byte [ebp + 0x40], bl
je 0x41121f
push 1
push 0x537530
lea eax, [ebp + 8]
call fcn.004046e0
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [eax + 1]
lea esi, [ebp - 0x48]
lea edx, [ebp + 8]
call fcn.004043c0
push 0x537530
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 2
call fcn.00404cc0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00408270
push eax
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 4
call fcn.00404500
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jb 0x411140
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ad85d
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0xdc], edi
jb 0x411169
mov edx, dword [ebp - 0xf0]
push edx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x411174
lea eax, [ebp + 0x24]
push ebx
push eax
call fcn.005045ec
add esp, 8
cmp eax, 0xffffffff
jne 0x41120a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], esp
push eax
push ebx
lea eax, [ebp + 0x24]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x64]
push ecx
call fcn.00420700
add esp, 0x20
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4111c1
lea eax, [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x4111f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x38], edi
mov edi, dword [ebp + 0x24]
mov esi, eax
jae 0x4111e0
lea edi, [ebp + 0x24]
call fcn.00408b90
push esi
mov edi, 0x537ab0
call fcn.00408c90
add esp, 4
mov edi, 0x10
cmp dword [ebp - 0x50], 8
jb 0x41120a
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ad85d
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], edi
jb 0x41121f
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ad85d
add esp, 4
push 0x537ad4
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.00404cc0
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 0x10
mov eax, dword [ebp - 0x9c]
jae 0x411250
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x250]
push ecx
push eax
call fcn.005057e7
add esp, 8
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x4112da
mov edi, str._Xml2Install::CopyDir_End
call fcn.00408b90
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x411291
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004ad85d
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
cmp dword [ebp + 0x1c], esi
jb 0x4112b9
mov eax, dword [ebp + 8]
push eax
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4112d3
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004ad85d
add esp, 4
xor al, al
jmp 0x4118a7
mov edi, 0xf
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
xor edx, edx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
mov byte [ebp - 4], 8
jmp 0x411310
test byte [ebp - 0x250], 0x10
je 0x411445
mov esi, 0x537af4
lea eax, [ebp - 0x22c]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x411348
cmp cl, bl
je 0x411344
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x411348
add eax, 2
add esi, 2
cmp cl, bl
jne 0x411328
xor eax, eax
jmp 0x41134d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4117c5
mov esi, 0x537af8
lea eax, [ebp - 0x22c]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x411380
cmp cl, bl
je 0x41137c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x411380
add eax, 2
add esi, 2
cmp cl, bl
jne 0x411360
xor eax, eax
jmp 0x411385
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4117c5
push 0x537530
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00404cc0
add esp, 0xc
push eax
lea edx, [ebp - 0x22c]
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.00408550
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x50], 0x10
jb 0x4113ce
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp + 0x44]
push eax
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x24]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ecx], bl
call fcn.00404580
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 0xc
push ebx
lea eax, [ebp - 0x48]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
mov ecx, dword [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.00411080
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0x10
jb 0x4117c5
mov ecx, dword [ebp - 0x48]
push ecx
jmp 0x4117bd
push 0x537530
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00404cc0
add esp, 0xc
push eax
lea edx, [ebp - 0x22c]
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0xd
call fcn.00408550
add esp, 4
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0xdc], 0x10
jb 0x41148f
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.004ad85d
add esp, 4
push 0x537530
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
call fcn.00404cc0
add esp, 0xc
push eax
lea edx, [ebp - 0x22c]
lea esi, [ebp - 0x128]
mov byte [ebp - 4], 0x10
call fcn.00408550
add esp, 4
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x34], 0x10
jb 0x4114e5
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ad85d
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x64]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ecx], bl
call fcn.00404580
lea eax, [ebp - 0x10c]
push eax
call fcn.00420700
add esp, 4
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 0x13
push ebx
lea edx, [ebp - 0x128]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00404580
lea eax, [ebp - 0xd4]
push eax
call fcn.00420700
add esp, 0x20
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xd4]
mov eax, 8
cmp dword [ebp - 0xc0], eax
jae 0x41156b
lea ecx, [ebp - 0xd4]
cmp dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x10c]
jae 0x41157f
lea eax, [ebp - 0x10c]
movzx edx, byte [ebp + 0x44]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
cmp al, bl
jne 0x4115c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x50], 0x10
mov edi, dword [ebp - 0x64]
mov esi, eax
jae 0x4115a9
lea edi, [ebp - 0x64]
call fcn.00408b90
push esi
mov edi, 0x537afc
call fcn.00408c90
add esp, 4
mov edi, 0xf
mov eax, dword [ebp - 0x254]
cmp byte [eax + 0xd4], bl
jne 0x411723
mov esi, eax
fld dword [esi + 0xbc]
fadd qword [0x546420]
fstp dword [ebp - 0x258]
fld dword [ebp - 0x258]
fst dword [esi + 0xbc]
fdiv dword [esi + 0xb8]
fmul qword [0x546458]
call fcn.005211a0
push 0xa
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [esi + 0xc0], eax
call fcn.00520ed1
mov esi, eax
mov ecx, esi
add esp, 0xc
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x411620
sub ecx, edi
push ecx
push esi
lea ecx, [ebp - 0xb8]
call fcn.004047d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xb8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00404580
lea eax, [ebp - 0x48]
push eax
call fcn.00420700
add esp, 0x20
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call fcn.00408160
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x34], 8
jb 0x41168b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x80]
xor edx, edx
mov esi, 8
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], esi
jae 0x4116ac
lea eax, [ebp - 0x80]
mov ecx, dword [0x58f468]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x13c]
push 0x536c84
call eax
push 0x537604
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00408420
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x16
call fcn.00408160
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x34], esi
jb 0x4116f9
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x6c], esi
jae 0x411710
lea eax, [ebp - 0x80]
mov ecx, dword [0x58f46c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edi, 0xf
cmp dword [ebp - 0xc0], 8
jb 0x41173b
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.004ad85d
add esp, 4
xor edx, edx
cmp dword [ebp - 0xf8], 8
mov esi, 7
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
jb 0x41176d
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004ad85d
add esp, 4
mov dword [ebp - 0xf8], esi
xor ecx, ecx
mov esi, 0x10
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], cx
cmp dword [ebp - 0x114], esi
jb 0x41179e
mov edx, dword [ebp - 0x128]
push edx
call fcn.004ad85d
add esp, 4
mov byte [ebp - 4], 8
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
cmp dword [ebp - 0x50], esi
jb 0x4117c5
mov eax, dword [ebp - 0x64]
push eax
call fcn.004ad85d
add esp, 4
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x250]
push ecx
push edx
call fcn.0050590e
add esp, 8
test eax, eax
je 0x411310
mov eax, dword [ebp - 0x260]
push eax
call fcn.00505a3c
add esp, 4
mov edi, str._Xml2Install::CopyDir_End
call fcn.00408b90
cmp dword [ebp - 0x6c], 8
jb 0x41180e
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004ad85d
add esp, 4
xor edx, edx
mov esi, 0x10
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], esi
jb 0x41183a
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004ad85d
add esp, 4
mov edi, 0xf
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0x88], esi
jb 0x411868
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004ad85d
add esp, 4
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
cmp dword [ebp + 0x1c], esi
jb 0x41188b
mov edx, dword [ebp + 8]
push edx
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4118a5
mov eax, dword [ebp + 0x24]
push eax
call fcn.004ad85d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x40