Function at 0x4031a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x14ac], ebx
jne 0x403457
mov esi, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403457
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403457
cmp dword [ebp + 0x19f4], ebx
jne 0x4032a6
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FCICreate
push eax
mov dword [ebp + 0x19f4], eax
call edi
mov dword [ebp + 0x19f8], eax
mov eax, dword [ebp + 0x19f4]
push str.FCIAddFile
push eax
call edi
mov ecx, dword [ebp + 0x19f4]
push str.FCIFlushFolder
push ecx
mov dword [ebp + 0x19fc], eax
call edi
mov edx, dword [ebp + 0x19f4]
push str.FCIFlushCabinet
push edx
mov dword [ebp + 0x1a00], eax
call edi
mov dword [ebp + 0x1a04], eax
mov eax, dword [ebp + 0x19f4]
push str.FCIDestroy
push eax
call edi
mov ecx, dword [ebp + 0x19f8]
mov dword [ebp + 0x1a08], eax
cmp ecx, ebx
je 0x403283
cmp dword [ebp + 0x19fc], ebx
je 0x403283
cmp dword [ebp + 0x1a00], ebx
je 0x403283
cmp dword [ebp + 0x1a04], ebx
je 0x403283
cmp eax, ebx
jne 0x4032a6
pop edi
mov dword [ebp + 0x19f4], ebx
mov dword [ebp + 0x14b8], 1
mov dword [ebp + 0x14b0], 0x3e8
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov dword [ebp + 0x14c0], ebx
mov dword [ebp + 0x1490], ebx
lea ebx, [ebp + 0x14c8]
mov ecx, 0xc9
xor eax, eax
mov edi, ebx
mov dword [ebp + 0x14c4], 1
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
cmp edx, 3
jb 0x403457
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jb 0x403457
cmp dword [esp + 0x1c], 0x4e20
jb 0x403457
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebx + 0x222]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 0x5c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
cmp byte [edx + ecx - 1], al
je 0x403343
mov byte [edx + ebx + 0x222], al
mov byte [edx + ebx + 0x223], 0
mov eax, dword [esp + 0x1c]
mov dx, word [esp + 0x20]
and eax, 0x7fffffff
mov edi, dword [esp + 0x18]
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov eax, 1
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 4], 0xdbba0
mov word [ebx + 0x20], dx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x18f4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14c0]
test eax, eax
jne 0x4033e7
mov ecx, dword [ebx + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [ebx + 0x122]
push ecx
push edx
push esi
call edi
mov eax, dword [ebx + 0x18]
push eax
push str.Disk__d
lea edx, [eax + 1]
lea eax, [ebx + 0x22]
push eax
mov dword [ebx + 0x18], edx
call edi
lea eax, [ebx + 0x222]
push esi
push eax
lea ecx, [ebp + 0x138c]
push str._s_s
push ecx
call edi
add esp, 0x28
lea eax, [ebp + 0x1498]
xor edx, edx
push ebp
push ebx
mov dword [eax], edx
push 0x403970
push 0x403940
push 0x4038f0
mov dword [eax + 4], edx
push 0x4038b0
push 0x4037c0
push 0x403780
mov dword [eax + 8], edx
push 0x403720
push 0x402c60
push 0x402c50
mov dword [eax + 0xc], edx
lea ecx, [ebp + 0x14b0]
push 0x4039c0
push ecx
mov dword [eax + 0x10], edx
call dword [ebp + 0x19f8]
add esp, 0x34
xor edx, edx
test eax, eax
pop edi
mov dword [ebp + 0x14ac], eax
setne dl
pop esi
pop ebp
mov eax, edx
pop ebx
ret 0x10
pop edi
mov dword [ebp + 0x14b0], 0x3e9
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10