Function at 0x40a4bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2cc
lea ebx, [esp + 0x70]
mov dword [esp + 4], 0x8000
mov dword [esp], ebx
call fcn.0041236c
test al, al
jne 0x40a50a
mov eax, dword [esp + 0x2e0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xbd
mov dword [esp], eax
call fcn.00405d7d
jmp 0x40a71b
mov dword [esp], str.MdYQ0Nh.Sii
call fcn.004081aa
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
push edx
mov ebp, eax
je 0x40a6c7
mov dword [esp], str.m6CEd5mWnWRMd664WRaC5C
call fcn.004081aa
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetProcAddress
push esi
push esi
mov dword [esp], str.m6C_0ddrd5Q0RcQ88d0
mov dword [esp + 0x4c], eax
call fcn.004081aa
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetProcAddress
push edi
push edi
mov esi, eax
mov dword [esp], str.m6CjRQld0C5dmWnWRMd664WR6
call fcn.004081aa
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetProcAddress
push ebp
push ebp
cmp dword [esp + 0x4c], 0
setne cl
test esi, esi
setne dl
test cl, dl
je 0x40a6c7
test eax, eax
je 0x40a6c7
lea edx, [esp + 0x5c]
xor ebp, ebp
mov dword [esp + 4], edx
lea edx, [esp + 0x60]
mov dword [esp], edx
call eax
test eax, eax
push ecx
push ecx
jne 0x40a6c7
cmp ebp, dword [esp + 0x60]
jae 0x40a6c7
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [esp + 0x4c]
test eax, eax
push edx
push edx
jne 0x40a6bc
mov eax, dword [esp + 0x64]
mov esi, str._lu_a_S_a_S_a_S_a_.2d__.2d__d__.2d:_.2d:_.2d_a_S_a
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x7e]
mov dword [esp + 0x68], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_FileTimeToSystemTime
push eax
push eax
mov ecx, 0x2d
mov eax, dword [esp + 0x64]
lea edi, [esp + 0x8f]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [eax + 0x3c]
lea esi, [esp + 0xbc]
mov dword [esp + 0x34], edx
movzx edx, word [esp + 0x8a]
mov dword [esp + 0x30], edx
movzx edx, word [esp + 0x88]
mov dword [esp + 0x2c], edx
movzx edx, word [esp + 0x86]
mov dword [esp + 0x28], edx
movzx edx, word [esp + 0x7e]
mov dword [esp + 0x24], edx
movzx edx, word [esp + 0x80]
mov dword [esp + 0x20], edx
movzx edx, word [esp + 0x84]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 4], 0x204
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8f]
mov dword [esp + 8], eax
call fcn.004127a8
cmp eax, 0xffffffff
je 0x40a6bc
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00412458
add dword [esp + 0x5c], 8
inc ebp
jmp 0x40a5b7
cmp dword [esp + 0x78], 0
je 0x40a6ec
mov dword [esp], ebx
call fcn.00412540
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], 0xbc
mov dword [esp + 8], eax
jmp 0x40a704
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xbd
mov eax, dword [esp + 0x2e0]
mov dword [esp], eax
call fcn.00405d7d
mov dword [esp], ebx
call fcn.004123b1
add esp, 0x2cc
pop ebx
pop esi
pop edi
pop ebp
ret