Function at 0x437440
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7d68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
xor edi, edi
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00421538
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00454a40
add esp, 8
cmp eax, edi
jne 0x437512
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4374d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4374fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0x4b0544
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4b04e0
call fcn.0048c02b
add esp, 4
push eax
push 0x4b04e0
mov ecx, 0x4d1954
call fcn.004214c7
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [0x4d196c]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4d1970]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x58], edi
mov dword [0x4d1950], ebx
mov esi, ecx
cmp ecx, eax
jbe 0x43757e
call fcn.0048c1a2
mov eax, dword [0x4d1970]
mov ecx, dword [0x4d196c]
mov edx, dword [0x4d1960]
sub eax, ecx
sar eax, 2
mov edi, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edi
test eax, eax
ja 0x437606
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4375bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4375e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 0
test edx, edx
jne 0x43764b
call fcn.0048c1a2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x437622
call fcn.0048c1a2
mov esi, dword [edi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x43764f
cmp eax, dword [esi]
jne 0x43764f
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x43768a
mov eax, dword [edx]
jmp 0x437618
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x43797c
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0048bd6a
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x4376a9
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00420560
mov esi, dword [ebp - 0x14]
mov edx, dword [0x4d1948]
push 0xffffffffffffffff
push edx
lea ebx, [esi + 2]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4d1940]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0
push ecx
push 0
push edx
push ebx
push 0x4d1938
mov dword [ebp - 0x10], 0
call fcn.0046f100
mov eax, dword [0x4d1948]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call fcn.0047b8e0
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4378e4
mov edi, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x437744
cmp eax, dword [edi]
jne 0x437744
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x43777f
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x43797c
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0048bd6a
add esp, 0x10
mov ecx, dword [ebp - 0x20]
add esi, 0x10
mov dword [ecx], esi
push ecx
mov esi, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x20], esi
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x437981
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
test ebx, ebx
je 0x4378a1
test ebx, 0xffff0000
jne 0x4378a5
movzx esi, bx
push esi
call fcn.00485bef
mov edi, eax
test edi, edi
je 0x4378b7
mov ecx, esi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4378b7
push esi
push eax
push edi
call fcn.004206ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4378b7
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x437835
push edi
mov ecx, ebx
call fcn.004204f5
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x43784f
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x24]
push edx
lea ecx, [edi + edi]
push esi
push ecx
push eax
mov dword [ebp - 0x28], ecx
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x437877.1
movzx ecx, byte [eax + 0x4379b0]
jmp dword [ecx*4 + 0x4379a0]
test edi, edi
jl 0x437995
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x437995
mov ecx, dword [ebp - 0x28]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x4378b7
xor eax, eax
jmp 0x4378ae
push ebx
call fcn.0048c02b
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.004214c7
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x58]
push eax
push 0x4d1938
mov byte [ebp - 4], 2
call fcn.004366e0
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0048cad9
add esp, 8
test eax, eax
jl 0x437995
cmp eax, dword [esi - 8]
jg 0x437995
mov dword [esi - 0xc], eax
xor edx, edx
push edi
mov word [esi + eax*2], dx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0x4d1960
call fcn.00437bb0
mov ebx, dword [0x4d196c]
cmp ebx, dword [0x4d1970]
jbe 0x437931
call fcn.0048c1a2
mov edx, dword [0x4d1960]
lea eax, [esi - 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43795d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4d1970]
sub ecx, dword [0x4d196c]
sar ecx, 2
test ecx, ecx
ja 0x437600
mov ebx, dword [ebp - 0x18]
jmp 0x437595
call fcn.0043483f
push 0x80004005
call fcn.00420000
call fcn.0047e233
call fcn.0047e26b
push 0x80070057
call fcn.00420000
nop
jle 0x437a1a
inc ebx
add byte [ebx - 0x6fffbc87], cl
jns 0x4379ee
add byte [eax + 0x4379], dl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3