Function at 0x4031a0
Capabilities:
Check if file exists
Copy file
Delete file
Link many functions at runtime

Disassembly:
sub esp, 0x424
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x420], eax
cmp byte [esp + 0x42c], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x434]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
je 0x4033de
lea edx, [esp + 0x20]
sub edx, esi
lea ebx, [esp + 0x20]
sub ebx, 4
mov ebp, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
jmp 0x4031fb
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403200
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403211
sub eax, edx
mov byte [ebx + eax], cl
push ebp
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push str._s_tmp.d_d
push ecx
call fcn.0045c58a
add esp, 0x10
push 0
lea edx, [esp + 0x24]
push edx
push esi
add ebp, 1
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne bl
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x20]
mov byte [esp + eax + 0x32c], cl
add eax, 1
test cl, cl
jne 0x403250
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40339d
push 0x104
lea eax, [esp + 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40329f
lea ecx, [esp + 0x228]
push 0x5c
push ecx
call fcn.0045c1e0
add esp, 8
mov byte [eax], 0
xor eax, eax
mov cl, byte [esp + eax + 0x228]
mov byte [esp + eax + 0x124], cl
add eax, 1
test cl, cl
jne 0x4032a1
lea edi, [esp + 0x124]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4032c0
mov bx, word [0x485b00]
mov eax, esi
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4032d8
lea edi, [esp + 0x124]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
nop
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4032f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x228]
mov byte [esp + eax + 0x32c], cl
add eax, 1
test cl, cl
jne 0x403310
lea edi, [esp + 0x32c]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403330
lea eax, [esp + 0x20]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403343
lea edi, [esp + 0x32c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403360
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
lea edx, [esp + 0x330]
push edx
lea eax, [esp + 0x12c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test eax, eax
setne bl
cmp ebp, 0x63
jg 0x4033aa
test bl, bl
je 0x4031f3
lea eax, [esp + 0x20]
lea ebp, [edi + 0x1c8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4033c0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x1c4], eax
jmp 0x4034ce
lea ebp, [edi + 0x1c8]
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4033f0
sub eax, edx
push eax
push 0
push ebp
call fcn.0045c220
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c4], eax
jne 0x4034ce
push 0x104
lea edx, [esp + 0x22c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40344b
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.0045c1e0
add esp, 8
mov byte [eax], 0
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x228]
mov byte [esp + eax + 0x124], cl
add eax, 1
test cl, cl
jne 0x403450
lea edi, [esp + 0x124]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403470
mov cx, word [0x485b00]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403488
lea edi, [esp + 0x124]
sub eax, ecx
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4034a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x124]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c4], eax
mov edi, ecx
mov eax, dword [edi + 0x1c4]
test eax, eax
je 0x4035f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
mov edx, dword [edi + 0x1c4]
push str.Startup
push edx
mov dword [edi + 0x2cc], eax
call esi
mov dword [edi + 0x2d4], eax
mov eax, dword [edi + 0x1c4]
push str.Shutdown
push eax
call esi
mov ecx, dword [edi + 0x1c4]
push str.SetParams
push ecx
mov dword [edi + 0x2d0], eax
call esi
mov edx, dword [edi + 0x1c4]
push str.GetParams
push edx
mov dword [edi + 0x2d8], eax
call esi
mov dword [edi + 0x2dc], eax
mov eax, dword [edi + 0x1c4]
push str.TransformBuffer
push eax
call esi
mov ecx, dword [edi + 0x1c4]
push str.RestoreBuffer
push ecx
mov dword [edi + 0x2e0], eax
call esi
mov edx, dword [edi + 0x1c4]
push str.FreeBuffer
push edx
mov dword [edi + 0x2e4], eax
call esi
mov dword [edi + 0x2e8], eax
mov eax, dword [edi + 0x1c4]
push str.Reset
push eax
call esi
cmp dword [edi + 0x2d4], 0
mov dword [edi + 0x2ec], eax
je 0x4035dc
cmp dword [edi + 0x2d0], 0
je 0x4035dc
cmp dword [edi + 0x2d8], 0
je 0x4035dc
cmp dword [edi + 0x2dc], 0
je 0x4035dc
cmp dword [edi + 0x2e0], 0
je 0x4035dc
cmp dword [edi + 0x2e4], 0
je 0x4035dc
cmp dword [edi + 0x2e8], 0
je 0x4035dc
push 1
mov ecx, edi
call fcn.00402f70
mov al, 1
jmp 0x4035f8
mov ecx, dword [edi + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp], 0
je 0x4035f6
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045c20d
add esp, 0x424
ret 8