Function at 0x405a40
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x270
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.LocalAlloc
mov dword [esp + 0x20], ecx
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalFree
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push str.LocalReAlloc
push str.KERNEL32.dll
mov dword [esp + 0x3c], eax
call esi
push eax
call edi
push str.FindClose
push str.KERNEL32.dll
mov dword [esp + 0x38], eax
call esi
push eax
call edi
push str.FindNextFileA
push str.KERNEL32.dll
mov dword [esp + 0x34], eax
call esi
push eax
call edi
push str.FindFirstFileA
push str.KERNEL32.dll
mov dword [esp + 0x40], eax
call esi
push eax
call edi
push str.lstrlenA
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
mov edi, dword [esp + 0x1c]
mov esi, 0x2800
push esi
push 0x40
mov dword [esp + 0x30], eax
mov dword [edi + 0x1c], 0
mov dword [esp + 0x2c], esi
call ebx
mov ebx, eax
mov al, 0x2a
mov byte [esp + 0x17], al
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x284]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x180]
push ecx
push edx
mov byte [esp + 0x20], 0x25
mov byte [esp + 0x21], 0x73
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x26], 0
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x17c]
push eax
push ecx
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x405b6e
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, edi
mov byte [esp + 0x1b], 0x68
call fcn.004089a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 4
mov byte [ebx], 0x68
mov ebp, 1
jmp 0x405b7c
mov esi, dword [esp + 0x24]
lea eax, [esi - 0x208]
cmp ebp, eax
jbe 0x405b9a
add esi, 0x208
push 0x42
push esi
push ebx
mov dword [esp + 0x30], esi
call dword [esp + 0x3c]
mov ebx, eax
mov edi, 0x4215b0
lea esi, [esp + 0x68]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x405bcb
test al, al
je 0x405bc7
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x405bcb
add esi, 2
add edi, 2
test al, al
jne 0x405ba3
xor eax, eax
jmp 0x405bd0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405c68
mov edi, 0x4215ac
lea esi, [esp + 0x68]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x405c09
test al, al
je 0x405c05
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x405c09
add esi, 2
add edi, 2
test al, al
jne 0x405be1
xor eax, eax
jmp 0x405c0e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405c68
mov al, byte [esp + 0x3c]
lea ecx, [esp + 0x68]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebp
call dword [esp + 0x2c]
mov ecx, eax
lea esi, [esp + 0x68]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x58]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x5c]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x50]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x54]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [esp + 0x40]
test eax, eax
jne 0x405b78
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
call fcn.004089a0
push ebx
mov esi, eax
call dword [esp + 0x38]
mov eax, dword [esp + 0x20]
push eax
call dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 4