Function at 0x436600
Capabilities:
Query environment variable
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [ebp + 8]
lea ecx, [ebp - 5]
call fcn.00438880
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 6]
call fcn.00438930
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900c4]
mov dword [ebp - 0xa], eax
lea ecx, [ebp - 0xb]
call fcn.004389e0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4366a6
lea eax, [ebp - 0xa]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4366a3
lea ecx, [ebp - 0x11]
call fcn.00438a90
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x10]
lea ecx, [ebp - 0x12]
call fcn.00438b40
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x117]
call fcn.00438bf0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x118]
call fcn.00438ca0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900c8]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x11d]
call fcn.00438d50
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436772
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x43676c
lea ecx, [ebp - 0x125]
call fcn.00438e00
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x124]
lea ecx, [ebp - 0x126]
call fcn.00438eb0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
lea eax, [ebp - 0x116]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x104
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x127]
call fcn.00438f60
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x128]
call fcn.00439010
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900cc]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x12d]
call fcn.004390c0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436861
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x43685b
lea ecx, [ebp - 0x135]
call fcn.00439170
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x134]
lea ecx, [ebp - 0x136]
call fcn.00439220
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x116]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
call fcn.004392d0
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 3
jne 0x4368b9
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 4], eax
jmp 0x437974
lea eax, [ebp - 0x116]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov dword [ebp - 0x140], eax
mov eax, 0xffffffff
cmp dword [ebp - 0x140], eax
jne 0x436920
mov dword [ebp - 4], 5
jmp 0x437974
lea ecx, [ebp - 0x141]
call fcn.004393a0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x142]
call fcn.00439450
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900d0]
mov dword [ebp - 0x146], eax
lea ecx, [ebp - 0x147]
call fcn.00439500
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4369d5
lea eax, [ebp - 0x146]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x4369cf
lea ecx, [ebp - 0x14d]
call fcn.004395b0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x14c]
lea ecx, [ebp - 0x14e]
call fcn.00439660
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
sub esp, 0x18
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x155]
call fcn.00439710
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x156]
call fcn.004397c0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900d4]
mov dword [ebp - 0x15a], eax
lea ecx, [ebp - 0x15b]
call fcn.00439870
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436ae6
lea eax, [ebp - 0x15a]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x436ae0
lea ecx, [ebp - 0x161]
call fcn.00439920
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x160]
lea ecx, [ebp - 0x162]
call fcn.004399d0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
cmp dword [ebp - 0x154], 0
jne 0x436bfa
lea ecx, [ebp - 0x163]
call fcn.00439a80
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x164]
call fcn.00439b30
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [str.f_rj_n]
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x169]
call fcn.00439be0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436bc2
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x436bbc
lea ecx, [ebp - 0x171]
call fcn.00439c90
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x170]
lea ecx, [ebp - 0x172]
call fcn.00439d40
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 4], 6
jmp 0x437974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436cf8
lea ecx, [ebp - 0x173]
call fcn.00439df0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x174]
call fcn.00439ea0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900dc]
mov dword [ebp - 0x178], eax
lea ecx, [ebp - 0x179]
call fcn.00439f50
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436cc0
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x436cba
lea ecx, [ebp - 0x181]
call fcn.0043a000
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x180]
lea ecx, [ebp - 0x182]
call fcn.0043a0b0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 4], 7
jmp 0x437974
mov eax, dword [ebp - 0x154]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x189]
call fcn.0043a160
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x18a]
call fcn.0043a210
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900e0]
mov dword [ebp - 0x18e], eax
lea ecx, [ebp - 0x18f]
call fcn.0043a2c0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436de7
lea eax, [ebp - 0x18e]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x436de1
lea ecx, [ebp - 0x195]
call fcn.0043a370
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x194]
lea ecx, [ebp - 0x196]
call fcn.0043a420
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
cmp dword [ebp - 0x188], 0
jne 0x436fdc
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x197]
call fcn.0043a4d0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x198]
call fcn.0043a580
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900e4]
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x19d]
call fcn.0043a630
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436ed5
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jne 0x436ecf
lea ecx, [ebp - 0x1a5]
call fcn.0043a6e0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a6]
call fcn.0043a790
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x1a7]
call fcn.0043a840
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1a8]
call fcn.0043a8f0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900e8]
mov dword [ebp - 0x1ac], eax
lea ecx, [ebp - 0x1ad]
call fcn.0043a9a0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x436fb6
lea eax, [ebp - 0x1ac]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jne 0x436fb0
lea ecx, [ebp - 0x1b5]
call fcn.0043aa50
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1b6]
call fcn.0043ab00
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov dword [ebp - 4], 8
jmp 0x437974
call fcn.0043abb0
lea ecx, [ebp - 0x1b7]
call fcn.0043ae00
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1b8]
call fcn.0043aeb0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900ec]
mov dword [ebp - 0x1bc], eax
lea ecx, [ebp - 0x1bd]
call fcn.0043af60
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437096
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x437090
lea ecx, [ebp - 0x1c5]
call fcn.0043b010
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1c6]
call fcn.0043b0c0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x188]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0043b170
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x1c7]
call fcn.0043b4f0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1c8]
call fcn.0043b5a0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900f0]
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x1cd]
call fcn.0043b650
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437180
lea eax, [ebp - 0x1cc]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
jne 0x43717a
lea ecx, [ebp - 0x1d5]
call fcn.0043b700
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d6]
call fcn.0043b7b0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
call fcn.0043b860
lea ecx, [ebp - 0x1d7]
call fcn.0043bb70
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1d8]
call fcn.0043bc20
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900f4]
mov dword [ebp - 0x1dc], eax
lea ecx, [ebp - 0x1dd]
call fcn.0043bcd0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437254
lea eax, [ebp - 0x1dc]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x43724e
lea ecx, [ebp - 0x1e5]
call fcn.0043bd80
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1e4]
lea ecx, [ebp - 0x1e6]
call fcn.0043be30
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
cmp dword [ebp - 0x13c], 0
je 0x4375fb
lea ecx, [ebp - 0x1e7]
call fcn.0043bee0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1e8]
call fcn.0043bf90
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900f8]
mov dword [ebp - 0x1ec], eax
lea ecx, [ebp - 0x1ed]
call fcn.0043c040
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437330
lea eax, [ebp - 0x1ec]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f4], 0
jne 0x43732a
lea ecx, [ebp - 0x1f5]
call fcn.0043c0f0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f6]
call fcn.0043c1a0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x188]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
sub esp, 4
lea ecx, [ebp - 0x1f7]
call fcn.0043c250
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x1f8]
call fcn.0043c300
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x4900fc]
mov dword [ebp - 0x1fc], eax
lea ecx, [ebp - 0x1fd]
call fcn.0043c3b0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437411
lea eax, [ebp - 0x1fc]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jne 0x43740b
lea ecx, [ebp - 0x205]
call fcn.0043c460
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x204]
lea ecx, [ebp - 0x206]
call fcn.0043c510
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x207]
call fcn.0043c5c0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x208]
call fcn.0043c670
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490100]
mov dword [ebp - 0x20c], eax
lea ecx, [ebp - 0x20d]
call fcn.0043c720
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4374f2
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4374ec
lea ecx, [ebp - 0x215]
call fcn.0043c7d0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x214]
lea ecx, [ebp - 0x216]
call fcn.0043c880
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x217]
call fcn.0043c930
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x218]
call fcn.0043c9e0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490104]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x21d]
call fcn.0043ca90
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4375d3
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4375cd
lea ecx, [ebp - 0x225]
call fcn.0043cb40
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x224]
lea ecx, [ebp - 0x226]
call fcn.0043cbf0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 4], eax
jmp 0x437974
lea ecx, [ebp - 0x227]
call fcn.0043cca0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x228]
call fcn.0043cd50
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490108]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x22d]
call fcn.0043ce00
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x4376b0
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x4376aa
lea ecx, [ebp - 0x235]
call fcn.0043ceb0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x234]
lea ecx, [ebp - 0x236]
call fcn.0043cf60
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x188]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
sub esp, 4
lea ecx, [ebp - 0x237]
call fcn.0043d010
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x238]
call fcn.0043d0c0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x49010c]
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x23d]
call fcn.0043d170
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437791
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x43778b
lea ecx, [ebp - 0x245]
call fcn.0043d220
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x244]
lea ecx, [ebp - 0x246]
call fcn.0043d2d0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x247]
call fcn.0043d380
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x248]
call fcn.0043d430
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490110]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x24d]
call fcn.0043d4e0
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437872
lea eax, [ebp - 0x24c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x43786c
lea ecx, [ebp - 0x255]
call fcn.0043d590
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x254]
lea ecx, [ebp - 0x256]
call fcn.0043d640
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea ecx, [ebp - 0x257]
call fcn.0043d6f0
mov ecx, eax
call fcn.00401a80
mov dword [esp], eax
call fcn.00401450
lea ecx, [ebp - 0x258]
call fcn.0043d7a0
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401450
mov eax, dword [0x490114]
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x25d]
call fcn.0043d850
mov ecx, eax
call fcn.00401c20
mov dword [esp], eax
call sub.msvcrt.dll_getenv
cmp eax, 0
je 0x437953
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.00401c40
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
jne 0x43794d
lea ecx, [ebp - 0x265]
call fcn.0043d900
mov ecx, eax
call fcn.00401b50
mov dword [esp], eax
call fcn.00401c50
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
sub esp, 4
call dword [ebp - 0x264]
lea ecx, [ebp - 0x266]
call fcn.0043d9b0
mov ecx, eax
call fcn.00401e00
mov dword [esp], eax
call fcn.00401450
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x284
pop ebp
ret