Function at 0x705504
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x706324
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00704bc8
cmp dword [0x7b9d90], 1
jle 0x705568
cmp dword [0x7b9d88], 0
je 0x705568
lea eax, [ebp - 4]
call fcn.00704570
push dword [0x7b9d88]
push 0x706338
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040523c
mov eax, dword [ebp - 4]
call fcn.0040537c
push eax
push 0x706340
call sub.kernel32.dll_SetEnvironmentVariableA
push 8
push 0
mov eax, dword [0x7b9d64]
call fcn.0040537c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [0x7b9e14], eax
cmp word [0x7b9d70], 0x2328
jb 0x7055a5
push 8
push 0
mov eax, dword [0x7b9d68]
call fcn.0040537c
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [0x7b9e18], eax
cmp dword [0x7b9e14], 0
jne 0x7055ea
lea eax, [ebp - 4]
mov edx, dword [0x7b9d64]
call fcn.00404f54
mov eax, 0x7b9d64
call fcn.00404ebc
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x706350
call fcn.004051c8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x408fb8]
call fcn.0040eef8
call fcn.00404838
cmp word [0x7b9d70], 0x2328
jb 0x70563a
cmp dword [0x7b9e18], 0
jne 0x70563a
lea eax, [ebp - 4]
mov edx, dword [0x7b9d68]
call fcn.00404f54
mov eax, 0x7b9d68
call fcn.00404ebc
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x706370
call fcn.004051c8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x408fb8]
call fcn.0040eef8
call fcn.00404838
test byte [0x7b9d73], 2
je 0x705872
mov eax, 0x706388
call fcn.007044a0
mov dword [0x7b9a0c], eax
mov eax, 0x706398
call fcn.007044a0
mov dword [0x7b9a10], eax
mov eax, 0x7063a8
call fcn.007044a0
mov dword [0x7b9a14], eax
mov eax, 0x7063b8
call fcn.007044a0
mov dword [0x7b9a18], eax
mov eax, 0x7063c8
call fcn.007044a0
mov dword [0x7b9a1c], eax
mov eax, 0x7063d8
call fcn.007044a0
mov dword [0x7b9a20], eax
mov eax, 0x7063e8
call fcn.007044a0
mov dword [0x7b9a24], eax
mov eax, 0x7063f8
call fcn.007044a0
mov dword [0x7b9a28], eax
mov eax, 0x706408
call fcn.007044a0
mov dword [0x7b9a2c], eax
mov eax, 0x706418
call fcn.007044a0
mov dword [0x7b9a30], eax
mov eax, 0x706428
call fcn.007044a0
mov dword [0x7b9a34], eax
mov eax, 0x706438
call fcn.007044a0
mov dword [0x7b9a38], eax
mov eax, 0x70644c
call fcn.007044a0
mov dword [0x7b9a3c], eax
mov eax, 0x70645c
call fcn.007044a0
mov dword [0x7b9a40], eax
mov eax, 0x70646c
call fcn.007044a0
mov dword [0x7b9a44], eax
mov eax, 0x70647c
call fcn.007044a0
mov dword [0x7b9a48], eax
mov eax, 0x70648c
call fcn.007044a0
mov dword [0x7b9a4c], eax
mov eax, 0x70649c
call fcn.007044a0
mov dword [0x7b9a50], eax
mov eax, 0x7064ac
call fcn.007044a0
mov dword [0x7b9a54], eax
mov eax, 0x7064bc
call fcn.007044a0
mov dword [0x7b9a58], eax
mov eax, 0x7064cc
call fcn.007044a0
mov dword [0x7b9a5c], eax
mov eax, 0x7064dc
call fcn.007044a0
mov dword [0x7b9a60], eax
mov eax, 0x7064ec
call fcn.007044a0
mov dword [0x7b9a64], eax
mov eax, 0x7064fc
call fcn.007044a0
mov dword [0x7b9a68], eax
mov eax, 0x70650c
call fcn.007044a0
mov dword [0x7b9a6c], eax
mov eax, 0x70651c
call fcn.007044a0
mov dword [0x7b9a70], eax
mov eax, 0x70652c
call fcn.007044a0
mov dword [0x7b9a74], eax
mov eax, 0x70653c
call fcn.007044a0
mov dword [0x7b9a78], eax
mov eax, 0x70654c
call fcn.007044a0
mov dword [0x7b9a80], eax
mov eax, 0x70655c
call fcn.007044a0
mov dword [0x7b9a7c], eax
mov eax, 0x70656c
call fcn.007044a0
mov dword [0x7b9a84], eax
mov eax, 0x70657c
call fcn.007044a0
mov dword [fcn.007b9a88], eax
mov eax, 0x70658c
call fcn.007044a0
mov dword [0x7b9a8c], eax
mov eax, 0x70659c
call fcn.007044a0
mov dword [0x7b9a90], eax
mov eax, 0x7065ac
call fcn.007044a0
mov dword [0x7b9a94], eax
mov eax, 0x7065bc
call fcn.007044a0
mov dword [0x7b9a98], eax
mov eax, 0x7065cc
call fcn.007044a0
mov dword [0x7b9a9c], eax
test byte [0x7b9d73], 4
je 0x706039
mov eax, 0x7065dc
call fcn.007044a0
mov dword [0x7b9aa0], eax
mov eax, 0x7065f0
call fcn.007044a0
mov dword [0x7b9aa4], eax
mov eax, 0x706604
call fcn.007044a0
mov dword [0x7b9aa8], eax
mov eax, 0x706624
call fcn.007044a0
mov dword [0x7b9aac], eax
mov eax, 0x70663c
call fcn.007044a0
mov dword [0x7b9ab0], eax
mov eax, 0x706654
call fcn.007044a0
mov dword [0x7b9ab4], eax
mov eax, 0x70666c
call fcn.007044a0
mov dword [0x7b9ab8], eax
mov eax, 0x706684
call fcn.007044a0
mov dword [0x7b9abc], eax
mov eax, 0x706698
call fcn.007044a0
mov dword [0x7b9ac0], eax
mov eax, 0x7066b8
call fcn.007044a0
mov dword [0x7b9ac4], eax
mov eax, 0x7066d0
call fcn.007044a0
mov dword [0x7b9ac8], eax
mov eax, 0x7066ec
call fcn.007044a0
mov dword [0x7b9acc], eax
mov eax, 0x706704
call fcn.007044a0
mov dword [0x7b9ad0], eax
mov eax, 0x70671c
call fcn.007044a0
mov dword [0x7b9ad4], eax
mov eax, 0x706738
call fcn.007044a0
mov dword [0x7b9ad8], eax
mov eax, 0x706754
call fcn.007044a0
mov dword [0x7b9adc], eax
mov eax, 0x706768
call fcn.007044a0
mov dword [0x7b9ae0], eax
mov eax, 0x70677c
call fcn.007044a0
mov dword [0x7b9ae4], eax
mov eax, 0x706794
call fcn.007044a0
mov dword [fcn.007b9ae8], eax
mov eax, 0x7067ac
call fcn.007044a0
mov dword [0x7b9aec], eax
mov eax, 0x7067c4
call fcn.007044a0
mov dword [0x7b9af0], eax
mov eax, 0x7067dc
call fcn.007044a0
mov dword [0x7b9af4], eax
mov eax, 0x7067f0
call fcn.007044a0
mov dword [0x7b9af8], eax
mov eax, 0x70680c
call fcn.007044a0
mov dword [0x7b9afc], eax
mov eax, 0x706824
call fcn.007044a0
mov dword [0x7b9b00], eax
mov eax, 0x70683c
call fcn.007044a0
mov dword [0x7b9b04], eax
mov eax, 0x706858
call fcn.007044a0
mov dword [0x7b9b08], eax
mov eax, 0x706870
call fcn.007044a0
mov dword [0x7b9b0c], eax
mov eax, 0x706888
call fcn.007044a0
mov dword [0x7b9b10], eax
mov eax, 0x7068a0
call fcn.007044a0
mov dword [0x7b9b14], eax
mov eax, 0x7068b8
call fcn.007044a0
mov dword [0x7b9b18], eax
mov eax, 0x7068d0
call fcn.007044a0
mov dword [0x7b9b1c], eax
mov eax, 0x7068ec
call fcn.007044a0
mov dword [0x7b9b20], eax
mov eax, 0x706904
call fcn.007044a0
mov dword [0x7b9b24], eax
mov eax, 0x706920
call fcn.007044a0
mov dword [0x7b9b28], eax
mov eax, 0x706938
call fcn.007044a0
mov dword [0x7b9b2c], eax
mov eax, 0x706950
call fcn.007044a0
mov dword [0x7b9b30], eax
mov eax, 0x70696c
call fcn.007044a0
mov dword [0x7b9b34], eax
mov eax, 0x706984
call fcn.007044a0
mov dword [0x7b9b38], eax
mov eax, 0x70699c
call fcn.007044a0
mov dword [0x7b9b3c], eax
mov eax, 0x7069b8
call fcn.007044a0
mov dword [0x7b9b40], eax
mov eax, 0x7069d0
call fcn.007044a0
mov dword [0x7b9b44], eax
mov eax, 0x7069e4
call fcn.007044a0
mov dword [0x7b9b48], eax
mov eax, 0x706a04
call fcn.007044a0
mov dword [0x7b9b4c], eax
mov eax, 0x706a24
call fcn.007044a0
mov dword [0x7b9b50], eax
mov eax, 0x706a44
call fcn.007044a0
mov dword [0x7b9b54], eax
mov eax, 0x706a58
call fcn.007044a0
mov dword [0x7b9b58], eax
mov eax, 0x706a70
call fcn.007044a0
mov dword [0x7b9b5c], eax
mov eax, 0x706a8c
call fcn.007044a0
mov dword [0x7b9b60], eax
mov eax, 0x706aa8
call fcn.007044a0
mov dword [0x7b9b64], eax
mov eax, 0x706ac4
call fcn.007044a0
mov dword [0x7b9b68], eax
mov eax, 0x706adc
call fcn.007044a0
mov dword [0x7b9b6c], eax
mov eax, 0x706af8
call fcn.007044a0
mov dword [0x7b9b70], eax
mov eax, 0x706b14
call fcn.007044a0
mov dword [0x7b9b74], eax
mov eax, 0x706b2c
call fcn.007044a0
mov dword [0x7b9b78], eax
mov eax, 0x706b44
call fcn.007044a0
mov dword [0x7b9b7c], eax
mov eax, 0x706b60
call fcn.007044a0
mov dword [0x7b9b80], eax
mov eax, 0x706b7c
call fcn.007044a0
mov dword [0x7b9b84], eax
mov eax, 0x706b90
call fcn.007044a0
mov dword [0x7b9b88], eax
mov eax, 0x706ba4
call fcn.007044a0
mov dword [0x7b9b8c], eax
cmp byte [0x7b9d74], 0
je 0x706039
mov eax, 0x706bb8
call fcn.007044a0
mov dword [0x7b9b90], eax
mov eax, 0x706bd0
call fcn.007044a0
mov dword [0x7b9b94], eax
mov eax, 0x706be8
call fcn.007044a0
mov dword [0x7b9b98], eax
mov eax, 0x706c00
call fcn.007044a0
mov dword [0x7b9b9c], eax
mov eax, 0x706c18
call fcn.007044a0
mov dword [0x7b9ba0], eax
mov eax, 0x706c30
call fcn.007044a0
mov dword [0x7b9ba4], eax
mov eax, 0x706c48
call fcn.007044a0
mov dword [0x7b9ba8], eax
mov eax, 0x706c60
call fcn.007044a0
mov dword [0x7b9bac], eax
mov eax, 0x706c78
call fcn.007044a0
mov dword [0x7b9bb0], eax
mov eax, 0x706c90
call fcn.007044a0
mov dword [0x7b9bb4], eax
mov eax, 0x706cac
call fcn.007044a0
mov dword [0x7b9bb8], eax
mov eax, 0x706cc4
call fcn.007044a0
mov dword [0x7b9bbc], eax
mov eax, 0x706ce4
call fcn.007044a0
mov dword [0x7b9bc0], eax
mov eax, 0x706d04
call fcn.007044a0
mov dword [0x7b9bc4], eax
mov eax, 0x706d20
call fcn.007044a0
mov dword [0x7b9bc8], eax
mov eax, 0x706d3c
call fcn.007044a0
mov dword [0x7b9bcc], eax
mov eax, 0x706d58
call fcn.007044a0
mov dword [0x7b9bd0], eax
mov eax, 0x706d70
call fcn.007044a0
mov dword [0x7b9bd4], eax
mov eax, 0x706d8c
call fcn.007044a0
mov dword [0x7b9bd8], eax
mov eax, 0x706db0
call fcn.007044a0
mov dword [0x7b9bdc], eax
mov eax, 0x706dcc
call fcn.007044a0
mov dword [0x7b9be0], eax
mov eax, 0x706de4
call fcn.007044a0
mov dword [0x7b9be4], eax
mov eax, 0x706dfc
call fcn.007044a0
mov dword [0x7b9be8], eax
mov eax, 0x706e1c
call fcn.007044a0
mov dword [0x7b9bec], eax
mov eax, 0x706e38
call fcn.007044a0
mov dword [0x7b9bf0], eax
mov eax, 0x706e54
call fcn.007044a0
mov dword [0x7b9bf4], eax
mov eax, 0x706e70
call fcn.007044a0
mov dword [0x7b9bf8], eax
mov eax, 0x706e88
call fcn.007044a0
mov dword [0x7b9bfc], eax
mov eax, 0x706ea8
call fcn.007044a0
mov dword [0x7b9c00], eax
mov eax, 0x706ec0
call fcn.007044a0
mov dword [0x7b9c04], eax
mov eax, 0x706ed8
call fcn.007044a0
mov dword [0x7b9c08], eax
mov eax, 0x706ef0
call fcn.007044a0
mov dword [0x7b9c0c], eax
mov eax, 0x706f08
call fcn.007044a0
mov dword [0x7b9c10], eax
mov eax, 0x706f20
call fcn.007044a0
mov dword [0x7b9c14], eax
mov eax, 0x706f3c
call fcn.007044a0
mov dword [0x7b9c18], eax
mov eax, 0x706f54
call fcn.007044a0
mov dword [0x7b9c1c], eax
mov eax, 0x706f68
call fcn.007044a0
mov dword [0x7b9c20], eax
mov eax, 0x706f7c
call fcn.007044a0
mov dword [0x7b9c24], eax
mov eax, 0x706f90
call fcn.007044a0
mov dword [0x7b9c28], eax
mov eax, 0x706fa8
call fcn.007044a0
mov dword [0x7b9c2c], eax
mov eax, 0x706fc0
call fcn.007044a0
mov dword [0x7b9c30], eax
mov eax, 0x706fd8
call fcn.007044a0
mov dword [0x7b9c34], eax
mov eax, 0x706ff0
call fcn.007044a0
mov dword [0x7b9c38], eax
mov eax, 0x707008
call fcn.007044a0
mov dword [0x7b9c3c], eax
mov eax, 0x707020
call fcn.007044a0
mov dword [0x7b9c40], eax
mov eax, 0x707038
call fcn.007044a0
mov dword [0x7b9c44], eax
mov eax, 0x707050
call fcn.007044a0
mov dword [0x7b9c48], eax
mov eax, 0x707068
call fcn.007044a0
mov dword [0x7b9c4c], eax
mov eax, 0x707084
call fcn.007044a0
mov dword [0x7b9c50], eax
mov eax, 0x7070a0
call fcn.007044a0
mov dword [0x7b9c54], eax
mov eax, 0x7070bc
call fcn.007044a0
mov dword [0x7b9c58], eax
mov eax, 0x7070d4
call fcn.007044a0
mov dword [0x7b9c5c], eax
mov eax, 0x7070ec
call fcn.007044a0
mov dword [0x7b9c60], eax
mov eax, 0x707104
call fcn.007044a0
mov dword [0x7b9c64], eax
mov eax, 0x70711c
call fcn.007044a0
mov dword [0x7b9c68], eax
mov eax, 0x707130
call fcn.007044a0
mov dword [0x7b9c6c], eax
mov eax, 0x707148
call fcn.007044a0
mov dword [0x7b9c70], eax
mov eax, 0x707160
call fcn.007044a0
mov dword [0x7b9c74], eax
mov eax, 0x707174
call fcn.007044a0
mov dword [0x7b9c78], eax
mov eax, 0x707190
call fcn.007044a0
mov dword [0x7b9c7c], eax
mov eax, 0x7071a8
call fcn.007044a0
mov dword [0x7b9c80], eax
mov eax, 0x7071c4
call fcn.007044a0
mov dword [0x7b9c84], eax
mov eax, 0x7071dc
call fcn.007044a0
mov dword [0x7b9c88], eax
mov eax, 0x7071f4
call fcn.007044a0
mov dword [0x7b9c8c], eax
mov eax, 0x70720c
call fcn.007044a0
mov dword [0x7b9c90], eax
mov eax, 0x707224
call fcn.007044a0
mov dword [0x7b9c94], eax
mov eax, 0x70723c
call fcn.007044a0
mov dword [0x7b9c98], eax
mov eax, 0x707254
call fcn.007044a0
mov dword [0x7b9c9c], eax
mov eax, 0x70726c
call fcn.007044a0
mov dword [0x7b9ca0], eax
mov eax, 0x707284
call fcn.007044a0
mov dword [0x7b9ca4], eax
mov eax, 0x70729c
call fcn.007044a0
mov dword [0x7b9ca8], eax
cmp word [0x7b9d70], 0x1fa4
jb 0x7060ed
mov eax, 0x7072b4
call fcn.007044a0
mov dword [0x7b9cac], eax
mov eax, 0x7072cc
call fcn.007044a0
mov dword [0x7b9cb0], eax
mov eax, 0x7072e4
call fcn.007044a0
mov dword [0x7b9cb4], eax
mov eax, 0x707308
call fcn.007044a0
mov dword [0x7b9cb8], eax
mov eax, 0x70732c
call fcn.007044a0
mov dword [0x7b9cbc], eax
mov eax, 0x707350
call fcn.007044a0
mov dword [0x7b9cc0], eax
mov eax, 0x707370
call fcn.007044a0
mov dword [0x7b9cc4], eax
mov eax, 0x707394
call fcn.007044a0
mov dword [0x7b9cc8], eax
mov eax, 0x7073b0
call fcn.007044a0
mov dword [0x7b9ccc], eax
mov eax, 0x7073d0
call fcn.007044a0
mov dword [0x7b9cd0], eax
mov eax, 0x7073ec
call fcn.007044a0
mov dword [0x7b9cd4], eax
cmp word [0x7b9d70], 0x2328
jb 0x706309
mov eax, 0x70740c
call fcn.007044a0
mov dword [0x7b9cd8], eax
mov eax, 0x70742c
call fcn.007044a0
mov dword [0x7b9cdc], eax
mov eax, 0x707448
call fcn.007044a0
mov dword [0x7b9ce0], eax
mov eax, 0x707464
call fcn.007044a0
mov dword [0x7b9ce4], eax
mov eax, 0x707480
call fcn.007044a0
mov dword [0x7b9ce8], eax
mov eax, 0x70749c
call fcn.007044a0
mov dword [0x7b9cec], eax
mov eax, 0x7074b8
call fcn.007044a0
mov dword [0x7b9cf0], eax
mov eax, 0x7074e0
call fcn.007044a0
mov dword [0x7b9cf4], eax
mov eax, 0x707504
call fcn.007044a0
mov dword [0x7b9cf8], eax
mov eax, 0x707520
call fcn.007044a0
mov dword [0x7b9cfc], eax
mov eax, 0x70753c
call fcn.007044a0
mov dword [0x7b9d00], eax
mov eax, 0x707558
call fcn.007044a0
mov dword [0x7b9d04], eax
mov eax, 0x707574
call fcn.007044a0
mov dword [0x7b9d08], eax
mov eax, 0x707590
call fcn.007044a0
mov dword [0x7b9d0c], eax
mov eax, 0x7075ac
call fcn.007044a0
mov dword [0x7b9d10], eax
mov eax, 0x7075c8
call fcn.007044a0
mov dword [0x7b9d14], eax
mov eax, 0x7075e8
call fcn.007044a0
mov dword [0x7b9d18], eax
mov eax, 0x707608
call fcn.007044a0
mov dword [0x7b9d1c], eax
mov eax, 0x707628
call fcn.007044a0
mov dword [0x7b9d20], eax
mov eax, 0x707648
call fcn.007044a0
mov dword [0x7b9d24], eax
mov eax, 0x707668
call fcn.007044a0
mov dword [0x7b9d28], eax
mov eax, 0x707680
call fcn.007044a0
mov dword [0x7b9d2c], eax
mov eax, 0x7076a0
call fcn.007044a0
mov dword [0x7b9d30], eax
mov eax, 0x7076bc
call fcn.007044a0
mov dword [0x7b9d34], eax
mov eax, 0x7076d8
call fcn.007044a0
mov dword [0x7b9d38], eax
mov eax, 0x7076f4
call fcn.007044a0
mov dword [0x7b9d3c], eax
mov eax, 0x707714
call fcn.007044a0
mov dword [0x7b9d40], eax
mov eax, 0x707730
call fcn.007044a0
mov dword [0x7b9d44], eax
mov eax, 0x70774c
call fcn.007044a0
mov dword [0x7b9d48], eax
mov eax, 0x707768
call fcn.007044a0
mov dword [0x7b9d4c], eax
mov eax, 0x707788
call fcn.007044a0
mov dword [0x7b9d50], eax
mov eax, 0x70779c
call fcn.007044a0
mov dword [0x7b9d60], eax
mov eax, 0x7077b4
call fcn.00704508
mov dword [0x7b9d54], eax
mov eax, 0x7077d4
call fcn.00704508
mov dword [0x7b9d58], eax
mov eax, 0x7077ec
call fcn.00704508
mov dword [0x7b9d5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70632b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ee0
ret