Function at 0x4091d0
Capabilities:
Hide graphical window
Print debug messages
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692830
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x670
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
push 0
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x674], edi
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x248]
push 0x5c
push eax
call fcn.0053f491
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 4
call fcn.0048a275
mov ecx, dword [0x75d004]
mov esi, eax
add esp, 4
mov dword [ebp - 0x680], esi
mov dword [esi], ecx
mov ecx, esi
push 0x735994
call fcn.00407960
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x668], 0
push eax
mov dword [ebp - 0x66c], 0
call fcn.004980ac
mov edx, dword [esi]
add esp, 4
mov ecx, str.imgdecoder_wic
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x4092fe
test si, si
je 0x4092fa
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4092fe
add eax, 4
add ecx, 4
test si, si
jne 0x4092d8
xor eax, eax
jmp 0x409303
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409318
lea eax, [ebp - 0x668]
push eax
call fcn.0048bf84
jmp 0x4093eb
mov ecx, str.imgdecoder_stb
mov eax, edx
nop
mov si, word [eax]
cmp si, word [ecx]
jne 0x409346
test si, si
je 0x409342
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x409346
add eax, 4
add ecx, 4
test si, si
jne 0x409320
xor eax, eax
jmp 0x40934b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409360
lea eax, [ebp - 0x668]
push eax
call fcn.0048c3b7
jmp 0x4093eb
mov ecx, str.imgdecoder_png
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x40938d
test si, si
je 0x409389
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x40938d
add eax, 4
add ecx, 4
test si, si
jne 0x409367
xor eax, eax
jmp 0x409392
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4093a4
lea eax, [ebp - 0x668]
push eax
call fcn.0049466d
jmp 0x4093eb
mov eax, 0x735994
nop dword [eax]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4093d6
test cx, cx
je 0x4093d2
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4093d6
add edx, 4
add eax, 4
test cx, cx
jne 0x4093b0
xor eax, eax
jmp 0x4093db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4093ee
lea eax, [ebp - 0x668]
push eax
call fcn.00495533
add esp, 4
mov ecx, dword [ebp - 0x66c]
push dword [ebp - 0x668]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.0048a275
add esp, 4
mov dword [ebp - 0x67c], 0x735a90
lea ecx, [ebp - 0x67c]
push 0
push ecx
push str.SOUIHOST
push dword [ebp - 0x664]
mov ecx, eax
push dword [ebp - 0x66c]
call fcn.00439773
mov esi, eax
mov dword [ebp - 0x670], 0
lea eax, [ebp - 0x670]
mov dword [ebp - 0x678], esi
push eax
call fcn.004f60b8
mov ecx, dword [ebp - 0x66c]
lea edx, [ebp - 0x264]
mov eax, dword [ebp - 0x664]
add esp, 4
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x264], 1
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 0x74
mov dword [ebp - 0x254], 0x735a38
mov dword [ebp - 0x250], 0x735a28
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
push str.uidef:xml_init
push dword [ebp - 0x670]
lea ecx, [esi + 0x10]
call fcn.00437f41
mov esi, dword [0x75d004]
test edi, edi
je 0x409524
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4094d6
sub edi, ecx
sar edi, 1
je 0x409524
lea eax, [edi*2 + 0xe]
push eax
call fcn.004333f5
add esp, 4
test eax, eax
je 0x409524
lea ecx, [edi + edi]
mov dword [eax], 1
push ecx
push dword [ebp - 0x674]
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
xor edx, edx
mov dword [eax + 8], edi
push esi
mov word [ecx + eax + 0xc], dx
call fcn.0053f540
add esp, 0xc
cmp dword [esi - 0xc], 0
lea edi, [esi - 0xc]
jl 0x409538
mov dword [ebp - 0x664], esi
lock inc dword [edi]
jmp 0x409555
mov eax, dword [0x75d004]
lea ecx, [ebp - 0x664]
push esi
mov dword [ebp - 0x664], eax
call fcn.00407960
mov esi, dword [ebp - 0x664]
push str.LAYOUT:XML_MAINWND
lea ecx, [ebp - 0x660]
call fcn.0044a887
mov eax, dword [0x75d004]
lea ecx, [ebp - 0x290]
xorps xmm0, xmm0
mov dword [ebp - 0x290], eax
xor eax, eax
mov dword [ebp - method.SOUI::SwndContainerImpl.virtual_0], vtable.CMainDlg.4.0
movups xmmword [ebp - 0x2c4], xmm0
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x664]
push eax
mov dword [ebp - method.CMainDlg.3.virtual_0], vtable.CMainDlg.3.0
mov dword [ebp - method.SOUI::STabCtrl.1.virtual_0], vtable.CMainDlg.2.0
mov dword [ebp - method.SOUI::TObjRefImpl_struct_IObjRef_.virtual_0], vtable.CMainDlg.1.0
mov dword [ebp - method.CMainDlg.virtual_0], vtable.CMainDlg.0
movq qword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2b0], 7
movups xmmword [ebp - 0x2ac], xmm0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2c8], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov word [ebp - 0x293], 0
mov byte [ebp - 0x294], 0
mov dword [ebp - 0x2b4], 0
call fcn.00407a40
lea ecx, [esi - 0xc]
mov dword [ebp - 4], 0
or esi, 0xffffffff
cmp ecx, dword [section..data]
je 0x40965c
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40965c
push ecx
call fcn.004333f0
add esp, 4
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x660]
call fcn.0044b7d0
push 0
push 0
push 0x110
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x424]
call fcn.0043353f
push 0
push dword [ebp - 0x418]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x418]
mov ecx, dword [ebp - 0x678]
call fcn.0043efcb
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x674], eax
call fcn.004048b0
mov dword [ebp - 4], 1
cmp edi, dword [section..data]
je 0x4096fc
mov eax, esi
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4096fc
push edi
call fcn.004333f0
add esp, 4
mov ecx, dword [ebp - 0x678]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x409713
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x670]
test ecx, ecx
je 0x409722
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x66c]
test ecx, ecx
je 0x409731
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x668]
test ecx, ecx
je 0x409740
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x680]
mov dword [ebp - 4], 2
mov eax, dword [edi]
sub eax, 0xc
cmp eax, dword [section..data]
je 0x40976c
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40976c
push eax
call fcn.004333f0
add esp, 4
push 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0048a4f6
add esp, 8
mov dword [ebp - 0x26c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x27c]
movups xmmword [ebp - 0x27c], xmm0
push 0x14
push str.install_return_code:
call fcn.00402060
mov edi, dword [ebp - 0x674]
lea esi, [ebp - 0x16]
mov ecx, edi
test edi, edi
jns 0x4097f0
neg ecx
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4097c0
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x409810
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4097f0
push ecx
lea eax, [ebp - 0x16]
push eax
push esi
lea ecx, [ebp - 0x260]
call fcn.00409930
cmp dword [ebp - 0x24c], 7
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmova eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x27c]
push eax
call fcn.004021f0
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x409887
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40987d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409906
push ecx
push edx
call fcn.0048a4f6
add esp, 8
cmp dword [ebp - 0x268], 7
lea eax, [ebp - 0x27c]
cmova eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x4098e4
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4098da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409906
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00543627
int3