Function at 0x41d480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [0x45b584]
test esi, esi
jne 0x41d4a6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [0x45b598]
mov dword [esp], eax
call sub.cygX11_6.dll_XSync
mov edi, dword [0x45cbb4]
cmp edi, 0x45cba4
mov edx, edi
je 0x41d499
mov esi, dword [edi + 0x29c]
mov ebx, dword [edi + 0x10]
jmp 0x41d4e5
mov eax, dword [ebx + 0x29c]
cmp eax, esi
jg 0x41d558
mov edi, ebx
mov ebx, dword [ebx + 0x10]
mov esi, eax
cmp ebx, 0x45cba4
jne 0x41d4d4
mov edi, 0x45cba4
mov ebx, edx
cmp edx, edi
jmp 0x41d50c
cmp dword [ebx + 0x14], edi
jne 0x41d59c
mov edi, ebx
mov ebx, dword [ebx + 0x10]
cmp ebx, 0x45cba4
jne 0x41d4f8
cmp dword [0x45cbb8], edi
je 0x41d5ad
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], ebx
mov ecx, str.vsrc:_stack_ring_is_corrupt___fvwm_will_probably_crash__0x_08x____0x_08x_but_0x_08x____0x_08x_n
mov edx, dword [ebx + 0x14]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 8], edi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00451ea8
call fcn.0041d3d0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___getreent
mov dword [esp + 0x18], esi
mov edx, dword [edi + 0x29c]
mov dword [esp + 0x14], edx
mov edx, dword [edi]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x29c]
mov dword [esp + 0xc], edx
mov edx, dword [ebx]
mov dword [esp + 8], edx
mov edx, str.vsrc:_stack_ring_is_corrupt___s__layer__d__is_above__s__layer__d__d__n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00451ea8
call fcn.0041d3d0
jmp 0x41d54b
cmp ebx, 0x45cba4
jne 0x41d51a
jmp 0x41d50e
mov eax, dword [0x45b598]
mov dword [esp], eax
call fcn.0044f880
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [0x45ce58]
mov dword [esp + 4], eax
mov eax, dword [0x45b598]
mov dword [esp], eax
call sub.cygX11_6.dll_XQueryTree
test eax, eax
je 0x41d738
mov ebx, dword [0x45cbb4]
mov edi, dword [ebp - 0x10]
cmp ebx, 0x45cba4
mov eax, edi
je 0x41d667
xor esi, esi
cmp esi, eax
jae 0x41d621
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x20]
cmp edx, dword [ecx]
jmp 0x41d61f
inc esi
cmp esi, eax
jae 0x41d621
cmp edx, dword [ecx + esi*4]
jne 0x41d617
cmp esi, eax
je 0x41d63b
cmp edi, esi
jbe 0x41d684
mov ebx, dword [ebx + 0x10]
mov edi, esi
cmp ebx, 0x45cba4
je 0x41d667
mov eax, dword [ebp - 0x10]
jmp 0x41d607
call sub.cygwin1.dll___getreent
mov edx, dword [ebx]
mov edi, str.vsrc:_window_already_died:_fw0x_08x_w0x_08x__s_n
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00451ea8
jmp 0x41d629
mov eax, dword [0x45b598]
mov dword [esp], eax
call fcn.0044f8e0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.cygX11_6.dll_XFree
jmp 0x41d499
call sub.cygwin1.dll___getreent
mov edx, dword [ebx]
mov esi, str.vsrc:_window_is_at_wrong_position_in_stack_ring:_fw0x_08x_f0x_08x__s_n
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x20]
mov dword [esp + 8], ebx
mov ebx, 0x1a
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00451ea8
call fcn.0041d3d0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], str.dumping_X_stacking_order:_n
call sub.cygwin1.dll_fwrite
mov esi, dword [ebp - 0x10]
dec esi
cmp esi, 0xffffffff
je 0x41d667
mov ebx, dword [0x45cbb4]
cmp ebx, 0x45cba4
je 0x41d6e0
mov edx, dword [ebp - 0x14]
jmp 0x41d70b
mov ebx, dword [ebx + 0x10]
cmp ebx, 0x45cba4
je 0x41d6e0
mov eax, dword [edx + esi*4]
cmp dword [ebx + 0x20], eax
jne 0x41d700
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + esi*4]
mov dword [esp + 8], edx
mov edx, str.__f0x_08x_n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00451ea8
jmp 0x41d6e0
mov eax, dword [0x45b598]
mov dword [esp], eax
call fcn.0044f8e0
jmp 0x41d499