Function at 0x40dce0
Capabilities:
Check http status code
Copy file
Set current directory

Disassembly:
mov eax, dword [0x4596d8]
sub esp, 0x4fc
push eax
call fcn.0040d670
add esp, 4
test eax, eax
je 0x40dff3
mov eax, dword [0x434244]
cmp dword [eax*4 + 0x908dd8], 0x13
jl 0x40dd30
mov ecx, dword [0x4596d8]
push 0
push 0x42c548
push 0x42c52c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0040dbf0
add esp, 0x4fc
ret
mov edx, dword [0x452574]
push ebx
mov ebx, dword [eax*4 + 0x908dd8]
push esi
push 0x42c48c
inc ebx
push edx
mov dword [eax*4 + 0x908dd8], ebx
call fcn.004231d5
add esp, 8
push ebp
mov dword [esp + 0xc], eax
xor ebx, ebx
push edi
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0x100
push ecx
call fcn.00423595
add esp, 0xc
test eax, eax
je 0x40de8c
mov esi, dword [0x434244]
mov ebp, dword [esi*4 + 0x908dd8]
lea edx, [esi + esi*4]
lea eax, [ebp + edx*2]
lea edi, [ebx + 1]
mov dword [eax*4 + 0x908d54], edi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dda8
sub eax, edx
add eax, 0xfffffffe
je 0x40de5b
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ddc1
sub eax, edx
lea ecx, [esp + 0x18]
mov dl, byte [ecx + eax - 1]
dec ecx
cmp dl, 0xd
je 0x40ddef
lea eax, [esp + 0x18]
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40dde0
sub eax, edi
cmp byte [ecx + eax], 0xa
jne 0x40de03
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ddf6
sub eax, edx
mov byte [esp + eax + 0x16], cl
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40de10
sub eax, edx
cmp eax, 0x48
jbe 0x40de22
mov byte [esp + 0x60], cl
lea ecx, [esi + esi*4]
lea edx, [ebp + ecx*4]
imul edx, edx, 0x190
lea eax, [edx + ebx - 0x190]
imul eax, eax, 0xc8
push 0x50
add eax, 0x459700
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 2
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0x14]
jmp 0x40de7e
lea edx, [esi + esi*4]
lea eax, [ebp + edx*4]
imul eax, eax, 0x190
lea ecx, [eax + ebx - 0x190]
imul ecx, ecx, 0xc8
mov word [ecx + 0x459700], 0
mov ebx, edi
cmp ebx, 0x190
jl 0x40dd60
mov edx, dword [esp + 0x10]
push edx
call fcn.0042304e
mov eax, dword [0x434244]
add esp, 4
cmp eax, 1
jne 0x40debe
mov eax, dword [0x908ddc]
push eax
lea ecx, [esp + 0x210]
push str.l_han_d.dat
push ecx
call fcn.004231fe
add esp, 0xc
mov eax, dword [0x434244]
test eax, eax
jne 0x40dee3
mov edx, dword [0x908dd8]
push edx
lea eax, [esp + 0x210]
push str.l_eng_d.dat
push eax
call fcn.004231fe
add esp, 0xc
push 0x43e8d0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [0x452574]
push 0
lea ecx, [esp + 0x210]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [0x452574]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40df10
sub eax, edx
lea edx, [eax - 1]
test edx, edx
jle 0x40df50
cmp byte [esi + edx], 0x5c
je 0x40df2d
dec edx
test edx, edx
jg 0x40df20
jmp 0x40df50
xor eax, eax
mov ecx, 0x40
mov edi, 0x43ea38
rep stosd dword es:[edi], eax
lea eax, [esi + edx + 1]
mov edx, 0x43ea38
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40df46
mov eax, 0x43ea38
pop edi
xor edx, edx
lea esi, [eax + 1]
pop ebp
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40df60
sub eax, esi
test eax, eax
jle 0x40df95
mov bl, 0x2e
nop
cmp byte [edx + 0x43ea38], bl
jne 0x40df7f
mov byte [edx + 0x43ea38], 0
mov eax, 0x43ea38
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40df88
sub eax, esi
cmp edx, eax
jl 0x40df70
mov eax, 0x43ea38
pop esi
lea edx, [eax + 1]
pop ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dfa0
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x300]
push eax
push 0xffffffffffffffff
push 0x43ea38
push 2
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x434244]
lea edx, [eax + eax*4]
mov eax, dword [eax*4 + 0x908dd8]
lea ecx, [esp + 0x2fc]
push ecx
lea ecx, [eax + edx*4]
imul ecx, ecx, 0xc8
lea edx, [ecx + 0xa6a460]
push edx
call fcn.00423280
add esp, 8
call fcn.0040dbf0
add esp, 0x4fc
ret