Function at 0x412260
Capabilities:
Accept command line arguments
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov edi, ecx
push 0x54cfe0
push 8
mov dword [esp + 0x38], edi
call fcn.004cba2a
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4122c6
mov dword [eax], vtable.MessagePopup::classmgr.0
mov dword [eax + 4], esi
jmp 0x4122c8
xor eax, eax
mov edx, dword [edi + 0x30]
add edi, 0x30
push eax
mov eax, dword [edx + 0x60]
mov ecx, edi
mov dword [esp + 0x20], edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x410cf0
mov ecx, edi
call eax
mov dword [esp + 0xa4], vtable.WTL::CMessageLoop.0
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0x3d8], esi
mov ebx, dword [0x54f4d8]
lea ecx, [esp + 0xa4]
add ebx, 0x10
push ebx
mov dword [esp + 0x50], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x54f07c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], eax
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00405b60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x16c]
mov eax, dword [edx + 8]
lea ecx, [esi + 0x16c]
mov dword [esp + 0x4c], ecx
call eax
lea eax, [esi + 4]
push str.webapp
mov ebx, 6
call fcn.00408500
mov eax, esi
mov dword [eax], 2
add eax, 0x10
push 0x515f44
mov ebx, 1
call fcn.00408500
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x54], esi
xor ebx, ebx
cmp esi, ebx
je 0x412411
push 0x54cfe0
push 0x3c
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x50], eax
mov byte [esp + 0x3d8], 2
cmp eax, ebx
je 0x412402
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.0047395e
mov dword [esi + 8], eax
mov dword [esi], 5
mov eax, esi
jmp 0x412413
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 5
mov eax, esi
jmp 0x412413
xor eax, eax
mov byte [esp + 0x3d8], bl
mov esi, vtable.os::script_shared_ptr_class__variant__.0
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], esi
call fcn.0040ed50
mov byte [esp + 0x3d8], 3
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x8c]
push eax
push str.__fullcmd__
mov ecx, edi
call edx
mov byte [esp + 0x3d8], bl
mov eax, dword [esp + 0x94]
mov dword [esp + 0x8c], esi
cmp eax, ebx
je 0x4124a8
mov esi, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4124a3
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4124a3
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov esi, vtable.os::script_shared_ptr_class__variant__.0
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
cmp eax, ebx
je 0x4124c9
mov dword [eax], 2
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x4124cb
xor eax, eax
mov byte [esp + 0x3d8], bl
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x9c], esi
call fcn.0040ed50
mov byte [esp + 0x3d8], 6
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x98]
push ecx
push str.__debug__
mov ecx, edi
call edx
mov byte [esp + 0x3d8], bl
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x98], esi
cmp eax, ebx
je 0x412556
mov esi, eax
add eax, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x412556
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x412556
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esp + 0x20]
push str.messagecacheimage
push eax
call fcn.004384a0
add esp, 8
mov byte [esp + 0x3d8], 8
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0x20]
push 3
lea edx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], edx
call fcn.00418470
lea ecx, [esp + 0x18]
mov byte [esp + 0x3d8], 9
push ecx
mov ecx, dword [esp + 0x13c]
call fcn.00417170
mov byte [esp + 0x3d8], 0xb
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x13c]
cmp eax, edx
je 0x4125da
push eax
call fcn.004cc15e
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov esi, 0x104
sub eax, esi
or eax, edx
jge 0x412603
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.00404af0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], esi
jge 0x412612
push 0x80070057
call fcn.00408810
mov dword [ecx - 0xc], esi
mov eax, dword [esp + 0x18]
push ecx
mov byte [eax + 0x104], bl
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ce13f
add esp, 8
cmp eax, ebx
jl 0x412608
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x412608
push 0x515f7c
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x1c]
push 0x515f80
lea edx, [esp + 0x20]
push edx
mov byte [eax + ecx], bl
call fcn.00417250
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4126dc
push 0x10
push 0x515f84
push str.OpenWebApp
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x3d8], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4126ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ab5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412ab5
push 0x208
lea ecx, [esp + 0x1c0]
push ebx
push ecx
call fcn.004d7710
add esp, 0xc
push esi
lea edx, [esp + 0x1c0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4127ec
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.004085e0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x3ec], 0xc
call fcn.0045bbe4
mov esi, dword [eax]
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41278f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 0xb
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x4127ec
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
push 0x515e2c
add edi, 0x1e0
call fcn.00404c10
add esp, 0x14
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3d8], 0xd
mov ecx, dword [esp + 0x18]
push ecx
push str.uidir__s__js.ui.respath_uidir__
lea edi, [esp + 0x34]
call fcn.00404c30
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov esi, dword [esp + 0x34]
mov eax, dword [edx + 0xc]
add esp, 8
push esi
call eax
lea ecx, [esp + 0x28]
push str.Datawebapp.dat
push ecx
call fcn.0045b533
add esp, 8
lea edx, [esp + 0x114]
push edx
mov byte [esp + 0x3dc], 0xe
mov eax, dword [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x412c8a
mov eax, dword [esp + 0x130]
cmp eax, ebx
mov ecx, dword [esp + 0x134]
jl 0x412c8a
jg 0x412887
cmp ecx, ebx
jbe 0x412c8a
cmp eax, ebx
jg 0x412c8a
jl 0x41289d
cmp ecx, 0x100000
ja 0x412c8a
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x54]
lea ebx, [esp + 0x88]
call fcn.0040fa20
mov edi, dword [esp + 0x88]
test edi, edi
je 0x412c05
lea ecx, [esp + 0xf4]
push ecx
call fcn.0040f7c0
mov ebx, dword [esp + 0x54]
push ebx
push edi
mov esi, eax
call fcn.0040f8f0
mov eax, dword [esp + 0x100]
xor esi, esi
cmp eax, esi
je 0x4128fb
push eax
call fcn.004cb380
add esp, 4
mov edx, dword [esp + 0xf4]
push edx
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], esi
call fcn.004cb380
add esp, 4
cmp ebx, esi
je 0x412c05
push 4
call fcn.004cb80b
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x412940
lea edx, [esp + 0x34]
mov dword [eax], edx
jmp 0x412942
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
push 1
push ecx
mov byte [esp + 0x3e0], 0x10
mov eax, esp
mov dword [esp + 0x7c], esp
push eax
mov ecx, edi
call fcn.00417170
lea ebx, [esp + 0xe4]
call fcn.0047328b
add esp, 8
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x3dc], 0x11
call fcn.00417960
mov byte [esp + 0x3d8], 0x10
mov eax, dword [esp + 0xe8]
xor ebx, ebx
cmp eax, ebx
je 0x4129aa
push eax
call fcn.004cb380
add esp, 4
mov ecx, dword [esp + 0xdc]
push ecx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
call fcn.004cb380
add esp, 4
push edi
call fcn.004cc1ec
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, eax
add esp, 4
sub esi, ecx
jne 0x412b2b
cmp ecx, ebx
je 0x4129f7
push ecx
call fcn.004cb380
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004cb380
mov byte [esp + 0x3dc], 0xd
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push str.hwndjs.ui.hwnd
mov ecx, edi
call eax
mov esi, vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], esi
call dword [vtable.os::script_shared_ptr_class__variant__.0]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x3d8], 0x12
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x64]
push eax
push str.hwnd
mov ecx, edi
call edx
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x412d2e
call fcn.0040ef50
test al, al
je 0x412d2e
lea edi, [esp + 0xa4]
call fcn.0041a1c0
jmp 0x412d9d
mov byte [esp + 0x27], bl
cmp ecx, ebx
jne 0x412b37
xor edx, edx
jmp 0x412b3d
mov edx, dword [esp + 0x48]
sub edx, ecx
cmp esi, edx
jae 0x412b4a
mov byte [eax], bl
inc eax
mov dword [esp + 0x44], eax
jmp 0x412b75
mov esi, eax
cmp ecx, eax
jbe 0x412b55
call fcn.004cb4f7
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x2f]
push ecx
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x44]
call fcn.004181c0
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
jne 0x412b80
call fcn.004cb4f7
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
push edx
call eax
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x412bdf
cmp eax, ebx
je 0x412ba5
push eax
call fcn.004cb380
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004cb380
mov byte [esp + 0x3dc], 0xd
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x412a2c
cmp eax, ebx
je 0x412bec
push eax
call fcn.004cb380
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004cb380
add esp, 4
mov byte [esp + 0x3d8], 0xd
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 0
jmp 0x412a8f
mov byte [esp + 0x3d8], 0xd
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x3d8], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3d8], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412ab1
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], esi
call dword [vtable.os::script_shared_ptr_class__variant__.0]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x3d8], 0x13
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x58]
push ecx
push str.__mainwindow__
mov ecx, edi
call edx
test eax, eax
je 0x412d88
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x412d88
call fcn.0040ef50
test al, al
je 0x412d88
lea edi, [esp + 0xa4]
call fcn.0041a1c0
mov byte [esp + 0x3d8], 0x12
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], esi
call fcn.0040ea60
call fcn.0041a070
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x170]
cmp eax, ebx
je 0x412dd2
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x3d8], bl
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], esi
call fcn.0040ea60
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x412e01
push eax
call fcn.004cc15e
add esp, 4
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
cmp eax, ebx
je 0x412e23
push eax
call fcn.004cc15e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret