Function at 0x419bb2
Capabilities:
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4417d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x324
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x3c]
call fcn.00404440
mov dword [ebp - 4], 0
mov byte [ebp - 0x40], 1
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x2d4]
push eax
push 0x46ca2c
lea ecx, [ebp - 0x90]
call fcn.00408e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
push ecx
push 0x46ca30
lea ecx, [ebp - 0x74]
call fcn.0040bc70
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2dc]
push edx
push 0x46ca34
lea ecx, [ebp - 0x64]
call fcn.0040bc70
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041a530
add esp, 4
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.004233c8
add esp, 0xc
push 0x29
push 0x28
lea edx, [ebp - 0x48]
push edx
push 0x466edc
mov eax, dword [ebp - 0x50]
push eax
call fcn.00416d40
add esp, 4
push eax
call fcn.00422a80
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x419d22
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00426bd0
add esp, 4
push eax
push 0x46c9b8
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041d27b
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x419d0d
mov eax, dword [0x46c9b8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x46c9b8]
push ecx
push str.__WinMain__szWorkingFolder_from_service____s_
call fcn.0042571d
add esp, 8
jmp 0x419d1e
mov edx, dword [ebp - 0x48]
push edx
push str.__WinMain__Error_hex2char___s__
call fcn.0042571d
add esp, 8
mov byte [ebp - 0x14], 1
cmp dword [0x46c9b8], 0
jne 0x419d4f
push 1
push 0
push 0x46c9b8
call fcn.0041ee18
add esp, 0xc
mov eax, dword [0x46c9b8]
push eax
push str.__WinMain__szWorkingFolder____s_
call fcn.0042571d
add esp, 8
push 1
lea ecx, [ebp - 0x290]
push ecx
push 0
push 0
call fcn.0041ac70
add esp, 0x10
lea edx, [ebp - 0x290]
push edx
push str.______s
call fcn.0042571d
add esp, 8
mov eax, dword [ebp - 0x50]
push eax
push str.__WinMain__szCmdLine___s_
call fcn.0042571d
add esp, 8
push 0
push 0x4175b0
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push 0x4175b0
push 0xa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
lea eax, [ebp - 0x3c]
push eax
push 0x466f78
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0041feff
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00404420
test eax, eax
jne 0x419dea
push str.__WinMain__Error_extracting_params
call fcn.0042571d
add esp, 4
jmp 0x41a343
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0x46c9c4
push 0x46c9c0
push 0x46c9bc
push 0x46c9b4
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00418405
add esp, 0x2c
mov edx, dword [0x46c9c4]
push edx
mov eax, dword [0x46c9c0]
push eax
mov ecx, dword [0x46c9bc]
push ecx
mov edx, dword [0x46c9b4]
push edx
push str.__WinMain__Params_Loaded:_szLang__s__szURL__s__szCode__s__szOwner__s_
call fcn.0042571d
add esp, 0x14
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push str.__WinMain__Params_Loaded:_szScript__s__szTmp__s_
call fcn.0042571d
add esp, 0xc
mov edx, dword [ebp - 0x14]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x30]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x40]
and edx, 0xff
push edx
push str.__WinMain__Params_Loaded:_bSelfDelete__i__bPrintScript__i__bElevation__i__bFromService__i_
call fcn.0042571d
add esp, 0x14
lea eax, [ebp - 0x90]
push eax
call fcn.00418cd0
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x419eb1
mov byte [ebp - 0x18], 1
jmp 0x419fa7
push str.__WinMain__Getting_script...
call fcn.0042571d
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00418d95
add esp, 0x20
mov eax, dword [ebp - 0x44]
push eax
push str.__WinMain__script_:__s
call fcn.0042571d
add esp, 8
cmp dword [ebp - 0x48], 0
je 0x419f0b
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x324], ecx
jmp 0x419f15
mov dword [ebp - 0x324], 0x46ca38
mov edx, dword [ebp - 0x324]
push edx
push str.__WinMain__error_:__s
call fcn.0042571d
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
push str.__WinMain__szRCMode_:__s
call fcn.0042571d
add esp, 8
mov ecx, dword [ebp - 0x54]
push ecx
push str.__WinMain__szTicket_:__s
call fcn.0042571d
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x419fa7
push 0x467104
mov edx, dword [ebp - 0x28]
push edx
call fcn.00427330
add esp, 8
test eax, eax
jne 0x419fa7
call fcn.0041e421
cmp eax, 0x50
jl 0x419fa7
push str.scrRC.tmp
mov eax, dword [ebp - 0x44]
push eax
call fcn.00417a80
add esp, 8
push str.__WinMain__Elevating...
call fcn.0042571d
add esp, 4
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00418ad1
add esp, 0xc
jmp 0x41a35b
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x41a343
cmp dword [0x46c9bc], 0
je 0x41a336
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
push 0x46712c
call fcn.0042571d
add esp, 4
push 0x29
push 0x28
lea edx, [ebp - 0x294]
push edx
push str.proxy
mov eax, dword [ebp - 0x50]
push eax
call fcn.00416d40
add esp, 4
push eax
call fcn.00422a80
add esp, 0x14
push 0x29
push 0x28
lea ecx, [ebp - 0x298]
push ecx
push str.auth
mov edx, dword [ebp - 0x50]
push edx
call fcn.00416d40
add esp, 4
push eax
call fcn.00422a80
add esp, 0x14
push str.__WinMain__Extracting_proxy_data_from_command_line...
call fcn.0042571d
add esp, 4
cmp dword [ebp - 0x294], 0
je 0x41a214
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x90]
call fcn.00404520
lea ecx, [ebp - 0x294]
push ecx
call fcn.004234c1
add esp, 4
cmp dword [ebp - 0x298], 0
je 0x41a1e1
mov edx, dword [ebp - 0x298]
push edx
call fcn.00426bd0
add esp, 4
test eax, eax
jbe 0x41a1e1
mov dword [ebp - 0x29c], 0
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
call fcn.0041d195
add esp, 8
cmp dword [ebp - 0x29c], 0
je 0x41a1d2
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040bc70
mov byte [ebp - 4], 5
push 0
push 0x4671ac
lea ecx, [ebp - 0x2ac]
call fcn.0040fd40
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
cmp ecx, dword [0x443458]
je 0x41a1aa
mov edx, dword [ebp - 0x2b0]
push edx
push 0
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040fd70
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x32c]
push edx
lea ecx, [ebp - 0x74]
call fcn.0040bcc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f0]
call fcn.0040bca0
mov eax, dword [0x443458]
push eax
mov ecx, dword [ebp - 0x2b0]
add ecx, 1
push ecx
lea edx, [ebp - 0x300]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.0040fd70
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040bcc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x300]
call fcn.0040bca0
jmp 0x41a1c3
lea ecx, [ebp - 0x2ac]
call fcn.0040bd00
push eax
push str._GetProxyAuth__could_not_decrypt_auth___ws_
call fcn.0042571d
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.0040bca0
lea edx, [ebp - 0x29c]
push edx
call fcn.004234eb
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.0040bd00
push eax
lea ecx, [ebp - 0x74]
call fcn.0040bd00
push eax
lea ecx, [ebp - 0x90]
call fcn.00404540
push eax
mov eax, dword [0x46c9bc]
push eax
push str.__WinMain__szURL___s__proxy___s__auth_ws:_ws
call fcn.0042571d
add esp, 0x14
jmp 0x41a221
push str.__WinMain__No_proxy_data_in_command_line...
call fcn.0042571d
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x41a327
lea ecx, [ebp - 0x304]
push ecx
push 0x46ca3c
lea ecx, [ebp - 0x2c0]
call fcn.00408e00
mov byte [ebp - 4], 8
lea edx, [ebp - 0x308]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.00408e00
mov byte [ebp - 4], 9
push str.__WinMain__Executing_script...
call fcn.0042571d
add esp, 4
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x318]
call fcn.00408e00
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c0]
push eax
mov cl, byte [ebp - 0x24]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041954d
add esp, 0x24
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x318]
call fcn.004044e0
lea ecx, [ebp - 0x2c0]
call fcn.00404570
test eax, eax
jbe 0x41a307
lea ecx, [ebp - 0x2c0]
call fcn.00404540
push eax
push str.__WinMain__ShowQuest__s_
call fcn.0042571d
add esp, 8
lea ecx, [ebp - 0x2c0]
call fcn.00404540
push eax
call fcn.00419aca
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d0]
call fcn.004044e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.004044e0
jmp 0x41a334
push str.__WinMain_Could_not_retrieve_script
call fcn.0042571d
add esp, 4
jmp 0x41a343
push str.__WinMain_szURL_Error...
call fcn.0042571d
add esp, 4
push str.__WinMain__Deleting_files...
call fcn.0042571d
add esp, 4
push 0x4672d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.__WinMain__Cleanning_up
call fcn.0042571d
add esp, 4
push 0x46c9b4
call fcn.004234c1
add esp, 4
push 0x46c9bc
call fcn.004234c1
add esp, 4
push 0x46c9c0
call fcn.004234c1
add esp, 4
push 0x46c9c4
call fcn.004234c1
add esp, 4
lea eax, [ebp - 0x44]
push eax
call fcn.004234c1
add esp, 4
lea ecx, [ebp - 0x50]
push ecx
call fcn.004234c1
add esp, 4
lea edx, [ebp - 0x4c]
push edx
call fcn.004234c1
add esp, 4
lea eax, [ebp - 0x54]
push eax
call fcn.004234c1
add esp, 4
lea ecx, [ebp - 0x48]
push ecx
call fcn.004234c1
add esp, 4
mov dword [ebp - 0x78], 0
jmp 0x41a3ea
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0xc
jge 0x41a405
mov eax, dword [ebp - 0x78]
lea ecx, [eax*4 + 0x46c9d4]
push ecx
call fcn.004234c1
add esp, 4
jmp 0x41a3e1
cmp dword [0x46c9d0], 0
je 0x41a41b
mov edx, dword [0x46c9d0]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x46c9d0], 0
mov eax, dword [ebp - 0x40]
and eax, 0xff
test eax, eax
je 0x41a44d
push str.__WinMain_SelfDelete
call fcn.0042571d
add esp, 4
mov ecx, dword [0x46c9b8]
push ecx
call fcn.004176ea
add esp, 4
push 0x46c9b8
call fcn.004234c1
add esp, 4
push 0x46730c
call fcn.0042571d
add esp, 4
jmp 0x41a483
mov dword [ebp - 4], 3
mov dword [ebp - 0x320], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040bca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.0040bca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.004044e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00404490
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10