Function at 0x45fb33
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x924]
sub esp, 0x9a4
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x920], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.PPLIB32W.DLL__ThInit_4]
mov eax, dword [0x48a234]
xor ebx, ebx
cmp eax, ebx
jg 0x45fc15
xor ecx, ecx
cmp dword [0x48a230], ebx
mov dword [ebp - 0x48], ecx
jle 0x45fd63
mov dword [ebp - 0x44], ebx
mov eax, dword [0x48a240]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax + 0x10]
cmp eax, ebx
jl 0x45fbf9
mov edx, dword [0x48a23c]
imul eax, eax, 0x18
mov esi, dword [eax + edx + 4]
cmp esi, ebx
je 0x45fbf9
lea edi, [esi + 0x584]
cmp word [edi], bx
je 0x45fbf9
mov eax, dword [esi + 0xc]
cmp eax, dword [0x489764]
jne 0x45fbbc
push 0x4755f0
jmp 0x45fbd8
cmp ecx, dword [0x48a238]
je 0x45fbd3
cmp eax, dword [0x489768]
je 0x45fbd3
push 0x4758a0
jmp 0x45fbd8
push 0x47853c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.PPLIB32W.DLL__ThCatString_8]
add esi, 0x40
push esi
mov esi, dword [sym.imp.PPLIB32W.DLL__ThAddString_8]
lea eax, [ebp - 0x54]
push eax
call esi
push edi
lea eax, [ebp - 0x54]
push eax
call esi
mov ecx, dword [ebp - 0x48]
add dword [ebp - 0x44], 0x3c
inc ecx
cmp ecx, dword [0x48a230]
mov dword [ebp - 0x48], ecx
jl 0x45fb7e
jmp 0x45fd63
cmp eax, ebx
mov dword [ebp - 0x48], ebx
jle 0x45fd63
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x58], ebx
mov eax, dword [0x48a240]
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ecx + eax + 0x18]
xor edi, edi
push edi
push edi
push 0x1304
push ebx
call esi
push edi
push edi
push 0x130b
push ebx
mov dword [ebp - 0x5c], eax
call esi
cmp dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x44], edi
jle 0x45fd27
jmp 0x45fc61
xor edi, edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x80], 8
push 0x133c
push ebx
call esi
test eax, eax
je 0x45fd18
push dword [ebp - 0x68]
call fcn.0045bd78
cmp eax, edi
jl 0x45fd18
mov ecx, dword [0x48a23c]
imul eax, eax, 0x18
mov edi, dword [eax + ecx + 4]
test edi, edi
je 0x45fd18
lea eax, [edi + 0x584]
cmp word [eax], 0
mov dword [ebp - 0x60], eax
je 0x45fd18
mov eax, dword [edi + 0xc]
cmp eax, dword [0x489764]
jne 0x45fcc1
push 0x4755f0
jmp 0x45fcf5
cmp eax, dword [0x489768]
jne 0x45fcd0
push 0x47853c
jmp 0x45fcf5
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x44], eax
jne 0x45fcf0
mov eax, dword [ebp - 0x48]
cmp eax, dword [0x48a238]
mov eax, 0x47853c
je 0x45fced
mov eax, 0x480750
push eax
jmp 0x45fcf5
push 0x4758a0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.PPLIB32W.DLL__ThCatString_8]
add edi, 0x40
push edi
mov edi, dword [sym.imp.PPLIB32W.DLL__ThAddString_8]
lea eax, [ebp - 0x54]
push eax
call edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x54]
push eax
call edi
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x5c]
jl 0x45fc5f
mov eax, dword [0x48a230]
dec eax
cmp dword [ebp - 0x48], eax
jge 0x45fd4b
mov edi, dword [sym.imp.PPLIB32W.DLL__ThAddString_8]
mov ebx, 0x4758d4
push ebx
lea eax, [ebp - 0x54]
push eax
call edi
push ebx
lea eax, [ebp - 0x54]
push eax
call edi
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x58], 0x3c
cmp eax, dword [0x48a234]
jl 0x45fc29
xor ebx, ebx
push 0x47711c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.PPLIB32W.DLL__ThAddString_8]
cmp dword [ebp + 0x92c], ebx
jne 0x45fd97
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0x920]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x924
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
or esi, 3
push esi
lea eax, [ebp + 0x470]
push str.__temp__ppxl_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x258
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push 0x8000100
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.PPLIB32W.DLL__CreateFileL_28]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45fe01
xor esi, esi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.PPLIB32W.DLL__ThFree_4]
mov eax, esi
jmp 0x45fd7d
push ebx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45fdf0